from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'OtherProbabilities' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): n_balls = models.IntegerField( label='How many balls each box has?', min=0, max=10) p1_g_Y = models.IntegerField( label='What is the probability of one green marble being drawn if the box is Yellow?', min=0, max=100) p1_G = models.IntegerField( label='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 BetsSelfOther(Page): pass class TestSetting(Page): form_model = 'player' form_fields = ['n_balls', 'p1_g_Y', 'p1_G'] class TestOther(Page): form_model = 'player' form_fields = ['p2_y_G', 'p2_G'] class PaymentInfo(Page): pass class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [BetsSelfOther, TestSetting, TestOther, PaymentInfo # ResultsWaitPage, # Results ]