from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Mturk_B2_agent' players_per_group = None num_rounds = 1 roundnumber = 1 pot = c(2) highpayoff = c(550) lowpayoff = c(0) outcome = '$0' probability_c0 = 2 probability_c0com = 98 probability_c1 = 10 probability_c1com = 90 probability_c2 = 15 probability_c2com = 85 probability_c3 = 25 probability_c3com = 75 probability_c4 = 30 probability_c4com = 70 probability_c5 = 35 probability_c5com = 65 probability_c6 = 40 probability_c6com = 60 probability_c7 = 50 probability_c7com = 50 nameperformer = 'Priya' pronounperformer = 'She' pronounperformer1 = 'she' Pronounperformer = 'her' ageperformer = '20' Pronounperformer1 = 'her' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # Belief Ex Ante form fields #DeciderPay1 = models.FloatField( # choices=[ # [0, '$0.00'], # [0.5, '$0.50'], # [1, '$1.00'], # [1.5, '$1.50'], # [1.5, '$2.00'], # ] # ) DeciderPay1 = models.FloatField(min=0, max=2) DeciderPay2 = models.FloatField( choices= [ [0, '$0.00'], [0.5, '$0.50'], [1, '$1.00'], [1.5, '$1.50'], [1.5, '$2.00'], ] ) BeliefExAnte1 = models.IntegerField ( choices=[0, 1, 2, 3] ) # Belief Ex Post form fields BeliefExPost1 = models.IntegerField ( choices=[0, 1, 2, 3] ) BeliefExPost2 = models.IntegerField ( choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ) BeliefExPost3 = models.IntegerField ( choices=[ [1, 'Yes'], [2, 'No'], ] )