from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Daniyal Chawla' doc = """ Skip pattern app """ class Constants(BaseConstants): name_in_url = 'skip_pattern' players_per_group = None num_rounds = 1 completion_code = "COMPLETE123" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): amountToPayUser = models.FloatField() choice1 = models.StringField() choice2 = models.StringField() choice3 = models.StringField() choice4 = models.StringField() choice5 = models.StringField() counter = models.IntegerField(initial=1) completion_code = models.StringField() q1 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $160 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q2 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $80 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q3 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $40 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q4 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $60 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q5 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $70 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q6 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $50 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q7 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $20 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q8 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $30 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q9 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $10 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q10 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $120 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q11 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $100 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q12 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $90 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q13 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $110 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q14 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $140 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q15 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $150 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q16 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $130 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q17 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $240 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q18 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $200 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q19 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $180 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q20 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $190 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q21 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $170 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q22 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $220 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q23 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $230 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q24 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $210 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q25 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $280 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q26 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $260 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q27 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $270 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q28 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $250 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q29 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $300 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q30 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $290 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) q31 = models.StringField( label="What would you prefer: a 50% chance of winning $300 when at the same time there is 50% chance of winning nothing, or would you rather have the amount of $310 as a sure payment?", choices=[['Lottery', 'Lottery'], ['Sure payment', 'Sure payment']], blank=True, widget=widgets.RadioSelect ) oq36 = models.LongStringField( label='36. What do you think is the purpose of this study?', blank=True ) oq37 = models.LongStringField( label='37. Do you have any feedback that you would like to share?', blank=True )