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' maximum_price = c(50) class Subsession(BaseSubsession): pass class Group(BaseGroup): winning_Sprice = models.CurrencyField() class Player(BasePlayer): Sprice = models.IntegerField(min=0, max=Constants.maximum_price) winner = models.BooleanField() Spayoff = models.CurrencyField() ritoku = models.CurrencyField()