from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, Page, WaitPage ) cu = c doc = '' class Constants(BaseConstants): name_in_url = 'Questionnaire' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(blank=True, label='What is your age', max=125, min=13) gender = models.StringField(blank=True, choices=[['Male', 'Male'], ['Female', 'Female'], ['Non-binary', 'Non-binary']], label='What is your gender', widget=widgets.RadioSelect) ethnicity = models.StringField(blank=True, choices=[['Asian', 'Asian'], ['Black/African', 'Black/African'], ['Caucasian/White', 'Caucasian/White'], ['Hispanic/Latino', 'Hispanic/Latino'], ['Native American', 'Native American'], ['Other', 'Other']], label='What is your ethnicity?', widget=widgets.RadioSelect) year_at_UVA = models.StringField(blank=True, choices=[['First Year', 'First Year'], ['Second Year', 'Second Year'], ['Third Year', 'Third Year'], ['Fourth Year', 'Fourth Year'], ['Other', 'Other']], label='What year are you at UVA?', widget=widgets.RadioSelect) volunteer_hours = models.IntegerField(blank=True, label='How many hours do you volunteer per week on average?', min=0) economics = models.BooleanField(blank=True, label='Are you, or do you intend to be, an economics major?', widget=widgets.RadioSelect) resident = models.BooleanField(blank=True, label='Are you a Virginia resident?', widget=widgets.RadioSelect) strategy = models.LongStringField(blank=True, label='Did you have a plan at the start of each match for how you would decide when to invest and when not to invest. If yes, please explain it as concisely as you can.') dishes = models.StringField(blank=True, choices=[['Clean all the dishes', 'Clean all the dishes'], ['Clean only your dishes', 'Clean only your dishes'], ['Clean no dishes', 'Clean no dishes']], label="Suppose you have one roommate and you come home from class to find a sink full of your and your roommate's dirty dishes. What do you do?", widget=widgets.RadioSelect) efficiency_equity = models.StringField(blank=True, choices=[['4$ to each', '4$ to each'], ['10$ to one and 0$ to the other', '10$ to one and 0$ to the other']], label='An experimenter will give you money to give to two strangers. The experimenter offers the two options below. Which would you choose?', widget=widgets.RadioSelect) dictator_game = models.FloatField(blank=True, label='An experimenter will give you 10 dollars to split between yourself and a stranger. How much do you give to the stranger?', max=10, min=0)