from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'challenge' players_per_group = None num_rounds = 1 #participation fee of 4$ participation_fee = c(4) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): #required for calculating the payoff, stores the drawn tasks and lottery values sl1 =models.IntegerField() sl2 = models.IntegerField() sl3 = models.CurrencyField() #comprehension questions Comprehension1= models.BooleanField( choices=[False,True], label="Your payoff will be determined using 1 of the 4 following choice tasks randomly drawn.", ) Comprehension2 = models.BooleanField( choices=[False,True], label="If you choose the lottery, you will get the expected payoff." ) #3 binary choices BC1 = models.IntegerField( choices=[ [1, 'Certain'], [2, 'Lottery'] ], widget=widgets.RadioSelectHorizontal, label= "Please indicate your decision.", ) BC2 = models.IntegerField( choices=[ [1, 'Certain'], [2, 'Lottery'] ], widget = widgets.RadioSelectHorizontal, label = "Please indicate your decision.", ) BC3 = models.IntegerField( choices=[ [1, 'Certain'], [2, 'Lottery'] ], widget = widgets.RadioSelectHorizontal, label = "Please indicate your decision.", ) #PriceList PL1 = models.IntegerField( choices=[1,2], widget=widgets.RadioSelectHorizontal, label = "With Certainty get 0$." ) PL2 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 1$." ) PL3 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 2$." ) PL4 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 3$." ) PL5 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 4$." ) PL6 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 5$." ) PL7 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 6$." ) PL8 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 7$." ) PL9 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 8$." ) PL10 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 9$." ) PL11 = models.IntegerField( choices=[1, 2], widget=widgets.RadioSelectHorizontal, label="With Certainty get 10$." )