from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '\nThis is a one-shot "Prisoner\'s Dilemma". Two players are asked separately\nwhether they want to cooperate or defect. Their choices directly determine the\npayoffs.\n' class Constants(BaseConstants): name_in_url = 'Results_BEA' players_per_group = 2 num_rounds = 1 betray_payoff = c(112) betrayed_payoff = c(25) both_cooperate_payoff = c(73) both_defect_payoff = c(42) expected_cooperators = 12 expected_cooperators2 = 10 bonus = c(40) instructions_template = 'Results_BEA/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass