from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Chocolate_bar_choice' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='', max=125, min=13) identifier = models.StringField(choices=[], label='Write your personal identifier here (your name or if you prefer, sth only you know but please remember it)') crt_bat = models.IntegerField(label='A bat and a ball cost 22 dollars in total The bat costs 20 dollars more than the ball How many dollars does the ball cost') crt_widget = models.IntegerField(label='If it takes 5 machines 5 minutes to make 5 widgets how many minutes would it take 100 machines to make 100 widgets') crt_lake = models.IntegerField(label='In a lake there is a patch of lily pads Every day the patch doubles in size If it takes 48 days for the patch to cover the entire lake how many days would it take for the patch to cover half of the lake') C_geisha_suffeli = models.StringField(choices=[['geisha', 'geisha'], ['suffeli', 'suffeli']], label='Which of these would you like to choose (recall: one choice and one participant will be randomly drawn and that participant will receive what she/he has chosen)?', widget=widgets.RadioSelect) c_geisha_suffeli_patkis = models.StringField(choices=[['geisha', 'geisha'], ['suffeli', 'suffeli'], ['patkis', 'patkis']], label='Which of the following do you want to choose (recall: one choice and one participant will be randomly drawn and that participant will receive what she/he chose)?', widget=widgets.RadioSelect) Preference_geisha_suffeli = models.StringField(choices=[['I prefer geisha over suffeli', 'I prefer geisha over suffeli'], ['I prefer suffeli over geisha', 'I prefer suffeli over geisha'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following ', widget=widgets.RadioSelect) Preference_suffeli_patkis = models.StringField(choices=[['I prefer suffeli over patkis', 'I prefer suffeli over patkis'], ['I prefer patkis over suffeli', 'I prefer patkis over suffeli'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following', widget=widgets.RadioSelect) Preference_geisha_patkis = models.StringField(choices=[['I prefer geisha over patkis', 'I prefer geisha over patkis'], ['I prefer patkis over geisha', 'I prefer patkis over geisha'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following', widget=widgets.RadioSelect) Preference_suffeli_geisha = models.StringField(choices=[['I prefer suffeli over geisha', 'I prefer suffeli over geisha'], ['I prefer geisha over suffeli', 'I prefer geisha over suffeli'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following ', widget=widgets.RadioSelect) Preference_patkis_suffeli = models.StringField(choices=[['I prefer patkis over suffeli', 'I prefer patkis over suffeli'], ['I prefer suffeli over patkis', 'I prefer suffeli over patkis'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following ', widget=widgets.RadioSelect) Preference_patkis_geisha = models.StringField(choices=[['I prefer patkis over geisha', 'I prefer patkis over geisha'], ['I prefer geisha over patkis', 'I prefer geisha over patkis'], ['I am indifferent', 'I am indifferent'], ["I can't say", "I can't say"]], label='Which of these two do you prefer? Tick one of the following ', widget=widgets.RadioSelect) Preference2_geisha_suffeli = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think geisha is at least as good as suffeli (tick one of the following)', widget=widgets.RadioSelect) Preference2_suffeli_patkis = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='• You think suffeli is at least as good as patkis (tick one of the following)', widget=widgets.RadioSelect) Preference2_geisha_patkis = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think geisha is at least as good as patkis (tick one of the following)', widget=widgets.RadioSelect) Preference2_suffeli_geisha = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think suffeli is at least as good as geisha (tick one of the following)', widget=widgets.RadioSelect) Preference2_patkis_suffeli = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think patkis is at least as good as suffeli (tick one of the following)', widget=widgets.RadioSelect) Preference2_geisha_geisha = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think geisha is at least as good as geisha (tick one of the following)', widget=widgets.RadioSelect) Preference2_patkis_patkis = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think patkis is at least as good as patkis (tick one of the following)', widget=widgets.RadioSelect) Preference2_suffeli_suffeli = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think suffeli is at least as good as suffeli (tick one of the following)', widget=widgets.RadioSelect) Preference2_patkis_geisha = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='You think patkis is at least as good as geisha (tick one of the following)', widget=widgets.RadioSelect) c_suffeli_patkis = models.StringField(choices=[['suffeli', 'suffeli'], ['patkis', 'patkis']], label='Which of these would you like to choose (recall: one choice and one participant will be randomly drawn and that participant will receive what she/he has chosen)?', widget=widgets.RadioSelect)