from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'closing_page' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): cumulative_payoff = models.CurrencyField() guess = models.IntegerField(label="Answer") cups = models.IntegerField() age = models.IntegerField(label="Age") lotaria = models.IntegerField() win = models.FloatField() outcomeofthelottery = models.IntegerField() bonusmoney = models.FloatField() real = models.IntegerField() gender = models.IntegerField( choices=[ [1, 'Male'], [2, 'Female'], [3, 'Other'], ], widget=widgets.RadioSelect ) education = models.IntegerField( choices=[ [1, 'High School Diploma'], [2, 'Bachelor'], [3, 'Master'], [4, 'Doctoral'], ], widget=widgets.RadioSelect ) employment = models.IntegerField( choices=[ [1, 'Unemployed/Student'], [2, 'Part-time job'], [3, 'Full-time job'], ], widget=widgets.RadioSelect ) L1 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 1: You win 0.3 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L2 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 2: You win 0.5 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L3 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 3: You win 0.8 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L4 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 4: You win 1 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L5 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 5: You win 1.3 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L6 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 6: You win 1.5 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L7 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 7: You win 1.8 euro with probability 50% or you lose 0.5 euro with probability 50%" ) L8 = models.IntegerField( widget=widgets.RadioSelect, choices=[ [1, 'Accept'], [2, 'Reject'], ], label="Lottery 8: You win 2 euro with probability 50% or you lose 0.5 euro with probability 50%" )