from otree.api import * import random doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'box_barble_experiment' PLAYERS_PER_GROUP = 2 NUM_ROUNDS = 1 Init_pay = cu(8) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): understanding_question_1 = models.IntegerField(min=0, max=100, label='For you, what is the probability of one green marble being ' 'drawn if the box is Yellow? Please fill in numbers from 0 ' 'to 100:') understanding_question_2 = models.IntegerField(min=0, max=100, label='For you, what is the probability that the computer selects ' 'the ' 'Green box? Please fill in numbers from 0 ' 'to 100:') understanding_question_3 = models.IntegerField(min=0, max=100, label='For participant 2, what is the ' 'probability ' 'of one yellow marble being draw if the box ' 'is Green? Please fill in numbers from 0 to ' '100:') understanding_question_4 = models.IntegerField(min=0, max=100, label='For participant 2, what is the probability ' 'that the computer selects the Green box? ' 'Please fill in numbers from 0 to 100:') # PAGES class General(Page): form_model = 'player' class BoxesMarbles(Page): form_model = 'player' class Sequences(Page): form_model = 'player' class Practice(Page): form_model = 'player' class BettingYellow(Page): form_model = 'player' class TrialTest(Page): form_model = 'player' form_fields = ['understanding_question_1', 'understanding_question_2', 'understanding_question_3', 'understanding_question_4'] class MakeBetInstruction(Page): form_model = 'player' class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [General, BoxesMarbles, Sequences, Practice, BettingYellow, TrialTest, MakeBetInstruction]