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 = 'instructions' players_per_group = 3 num_rounds = 1 num_part1_rounds = 3 winner_payoff = c(4) loser_payoff = c(1) m_hi = 10 m_lo = 1 exante_text = 'Before each round,' # Player 1 text expost_text = 'After each round,' # Players 2 and 3 text class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): #form field for example response ex_answer = models.IntegerField(label="") #variable to record average multiplier avg_multiplier = models.FloatField(label="") #variable recording P3's coinflip coinflip = models.IntegerField(label="") #variable recording P3's lottery lottery = models.CurrencyField(label="")