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='Inalake,thereisapatchoflilypads.Everyday,thepatchdoublesin 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') crtpig = models.IntegerField(label='A man buys a pig for $60, sells it for $70, buys it back for $80, and sells it finally for $90. How much has he made? _____ dollars ')