from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = "" class Constants(BaseConstants): name_in_url = "Task" players_per_group = None num_rounds = 10 token = c(100).to_real_world_currency instructions_template = "Task/instructions.html" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): contribution = models.CurrencyField(initial=10) contribution_robot = models.CurrencyField(initial=10) task_choice = models.IntegerField( choices=[ [1, " Human caregiver (costs for today: 10 token)"], [2, " Robot (costs for today: 10 token)"], ], initial=10, label="Make your choice:", widget=widgets.RadioSelect, ) satislevel = models.IntegerField( choices=[ [1, "6"], [2, "7"], [3, "8"], [4, "7"], [5, "6"], [6, "7"], [7, "8"], [8, "7"], [9, "6"], [10, "7"], ] ) payout = models.IntegerField(initial=0)