from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Consent_Instructions_CRT1' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Consent = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='Do you agree to participate in this experiment?') understanding = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='Do you understand these instructions?') crtwidget = models.IntegerField(label='If it takes 5 machines 5 minutes to make 5 widgets, how long would it take 100 machines to make 100 widgets?') crtbat = models.IntegerField(label='A bat and a ball cost $1.10 in total. The bat costs a dollar more than the ball. How much does the ball cost? ____ cents ') crtlake = 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 long would it take for the patch to cover half of the lake? ____ days') crtbat1 = models.FloatField(label='A bat and a ball cost $1.10 in total. The bat costs a dollar more than the ball. How much does the ball cost? ____ cents ', max=10, min=0)