from otree.api import * doc = """ Instructions for the higher order belief updating experiment. This includes the description of the problem and a test for understanding. """ class C(BaseConstants): NAME_IN_URL = 'instructions_higher_belief_updating' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 Init_pay = cu(8) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): p1_g_Y = models.IntegerField( label='For you, what is the probability of one green marble being drawn if the box is Yellow?', min=0, max=100) p1_G = models.IntegerField( label='For you, what is the probability that the computer selects the Green box?', min=0, max=100) p2_y_G = models.IntegerField( label='For participant 2, what is the probability of one yellow marble being draw if the box is Green?', min=0, max=100) p2_G = models.IntegerField( label='For participant 2, what is the probability that the computer selects the Green box?', min=0, max=100) # PAGES class General(Page): pass class BoxesMarbles(Page): pass class Sequences(Page): pass class BettingYellow(Page): pass class Practice(Page): pass class Test(Page): form_model = 'player' form_fields = ['p1_g_Y', 'p1_G', 'p2_y_G', 'p2_G'] class Payoffs(Page): pass class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [General, BoxesMarbles, Sequences, BettingYellow, #Practice, # This requires coding the conditions Test, Payoffs, ResultsWaitPage, Results]