from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import statistics from random import * doc = """ Instructions_DL """ class Constants(BaseConstants): name_in_url = 'instructions_dynamicL' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): comprehension1 = models.IntegerField( choices=[[1, '60 Cashcoins'], [2, '70 Cashcoins'], [3, '80 Cashcoins'], [4, '90 Cashcoins'], [5, '100 Cashcoins']], widget=widgets.RadioSelect, label='What is the minimum amount that must be earned by the group across 9 rounds to avoid dangerous climate change?', ) comprehension2 = models.IntegerField( choices=[[1, '28 Cashcoins'], [2, '32 Cashcoins'], [3, '36 Cashcoins'], [4, '40 Cashcoins'], [5, '44 Cashcoins']], widget=widgets.RadioSelect, label='What is your initial endowment?', ) comprehension3 = models.IntegerField( choices=[[1, '70%'], [2, '60%'], [3, '50%'], [4, '40%'], [5, '30%']], widget=widgets.RadioSelect, label='If the threshold of 90 Cashcoins is not met, what is the probability that I lose my savings?', ) comprehension4 = models.IntegerField( blank=False, choices=[[1, 'True'], [2, 'False']], widget=widgets.RadioSelect, label='True or False: If every player contributes 2 Cashcoins for each of the 9 rounds, the threshold of 90 Cashcoins is met.', ) comprehension5 = models.IntegerField( blank=False, choices=[[2, 'True'], [1, 'False']], widget=widgets.RadioSelect, label='True or False: The Initiator of the group is chosen by the experimenter.', ) comprehension6 = models.IntegerField( blank=False, choices=[[0, '0.5'], [1, '1.0'], [2, '1.5'], [3, '2.0']], widget=widgets.RadioSelect, label='Contributions to the "Climate Pot" made in Block 3 are multiplied by which factor before being added to the "Climate Pot"?', ) TimePreference = models.IntegerField( min=0, max=20, label=' ' ) RiskPreference = models.IntegerField( min=0, max=40, label=' ' )