# from otree.api import Currency as c from otree.constants import BaseConstants # # *** CLASS CONSTANTS *** # class Constants(BaseConstants): # ---------------------------------------------------------------------------------------------------------------- # # --- Task-specific Settings --- # # ---------------------------------------------------------------------------------------------------------------- # # Treatment A lotteries lottery_a_hi = 115.00 lottery_a_lo = 105.00 lottery_b_hi = 200.00 lottery_b_lo = 10.00 endowment = c(100) # Treatment B lotteries lottery_a_hi_B = 100.00 lottery_a_lo_B = 80.00 lottery_b_hi_B = 190.00 lottery_b_lo_B = 0.00 endowment_B = c(200) #Basic aesthetic parameters (nothing interesting here) num_choices = 10 certain_choice = True one_choice_per_page = False random_order = False enforce_consistency = False percentage = False small_pies = False large_pies = False progress_bar = True instructions = True results = True # Important oTree settings name_in_url = 'mpl' players_per_group = None if one_choice_per_page: if certain_choice: num_rounds = num_choices else: num_rounds = num_choices - 1 else: num_rounds = 1