from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import statistics from random import * doc = """ Instructions_S """ class Constants(BaseConstants): name_in_url = 'instructions_static' 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.', ) TimePreference = models.IntegerField( min=0, max=20, label=' ' ) RiskPreference = models.IntegerField( min=0, max=40, label=' ' )