from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ The final choice of the experiment for all groups. """ class Constants(BaseConstants): name_in_url = 'final_questions' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): color_choice = models.IntegerField( choices=[(1, 'Green'), (2, 'Blue')], widget=widgets.RadioSelect, blank=True ) option_choice = models.IntegerField( choices = [ [1, 'Option 1'], [2, 'Option 2'], ], widget=widgets.RadioSelect ) lottery_outcome = models.CurrencyField() probability = models.IntegerField( label = '', ) X = models.CurrencyField( label = '', ) ball_cost = models.IntegerField( label = '', ) length_minutes = models.IntegerField( label = '', ) duration_days = models.IntegerField( label = '', ) played_lottery = models.BooleanField( label = '', choices=[ [True, 'Yes'], [False, 'No'], ], widget=widgets.RadioSelect ) won_lottery = models.BooleanField( label = '', choices=[ [True, 'Yes'], [False, 'No'], ] )