from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Dana Zeif' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'game_of_fortune' players_per_group = None num_rounds = 42 min_rounds = 40 add_points = 100 max_loyalty = 10 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): prolific_id = models.StringField( label='Prolific ID') age = models.IntegerField( label='What is your age?', min=18) gender = models.StringField( choices=['Male', 'Female', 'Other'], label='What is your gender?', widget=widgets.RadioSelect) selection = models.StringField( choices=['A', 'B', 'C'], label='Choose one:', widget=widgets.RadioSelectHorizontal) extra_rounds = models.IntegerField( initial=0) score = models.IntegerField( initial=0)