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_choice' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): lottery_choice = models.IntegerField( choices = [ [1, 'Lottery 1'], [2, 'Lottery 2'], ], widget=widgets.RadioSelect ) lottery_outcome = models.CurrencyField() probability_of_the_rare_event = models.IntegerField() X = models.CurrencyField()