from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants import random class Guess(Page): form_model = 'player' form_fields = ['lower', 'upper'] def vars_for_template(self): return { 'series': Constants.y[100 * self.round_number-100:100 * self.round_number-1], } class Risk_Assessment(Page): form_model = 'player' form_fields = ['O1', 'O2', 'O3', 'O4', 'O5', 'O6', 'O7', 'O8', 'O9', 'O10'] class Personality_traits(Page): form_model = 'player' form_fields = ['Q1', 'Q2', 'Q3', 'Q4', 'Q5', 'Q6', 'Q7', 'Q8', 'Q9', 'Q10', 'Q11', 'Q12', 'Q13', 'Q14', 'Q15', 'Q16', 'Q17', 'Q18', 'Q19', 'Q20', 'Q21', 'Q22', 'Q23', 'Q24', 'Q25', 'Q26', 'Q27', 'Q28', 'Q29', 'Q30', 'Q31', 'Q32', 'Q33', 'Q34', 'Q35', 'Q36', 'Q37', 'Q38', 'Q39', 'Q40', 'Q41', 'Q42', 'Q43', 'Q44'] class Results(Page): def vars_for_template(self): return { 'upper': self.player.upper, 'lower': self.player.lower, 'equation': self.player.equation } page_sequence = [Guess]