# from otree.api import Currency as c from otree.constants import BaseConstants # # *** CLASS CONSTANTS *** # class Constants(BaseConstants): num_choices = 3 # Treatment A lottery payoffs lottery_hi = 200.00 lottery_lo = 0.00 endowment = c(100) probability = 40.00 #Treatment B Lottery lottery_hi_B = 0.00 lottery_lo_B = -80.00 endowment_B = c(200) # (initial) sure payoff sure_payoff = 110.00 sure_payoff_B= -50.00 # (initial) increase/decrease in sure payoff # while the first choice offers a fix payment of , "Option B" in subsequent choices depend on # generally, for choice , if choice # = "A" and if choice = "B" # thus, if a subject chooses "A" ("B"), increases (decreases) by half of the previous rounds # for example: if and , "Option B" offers in choice 2, # in choice 3, etc. delta = 30.00 #deviations from the initial sure_payoff which allows to generate 3 distinct choices for the Binary part #Basic aesthetics parameters. Nothing special here. indifference = False buttons = True progress_bar = True instructions = True confirmation = True results = True # oTree settings name_in_url = 'icl' players_per_group = None num_rounds = num_choices