from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = """ 2 firms complete in a market by setting prices for homogenous goods. See "Kruse, J. B., Rassenti, S., Reynolds, S. S., & Smith, V. L. (1994). Bertrand-Edgeworth competition in experimental markets. Econometrica: Journal of the Econometric Society, 343-371." """ class Constants(BaseConstants): players_per_group = 2 name_in_url = 'mori' num_rounds = 3 instructions_template = 'mori/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): winning_Sprice = models.CurrencyField() class Player(BasePlayer): ritoku = models.CurrencyField() Sprice = models.IntegerField(min=0, max=50) Hprice = models.IntegerField(min=0, max=50) Spayoff = models.IntegerField() Hpayoff = models.IntegerField() winner = models.StringField()