from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'PM' doc = """ Transparency in Trust Game: introduction to Treatment Group """ class Constants(BaseConstants): name_in_url = 'trustGame_0Introduction' num_rounds = 1 players_per_group = 2 # Initial amount allocated to each player participationsFee = 4 endowment = c(50) multiplier = 3 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): def role(self): return {1: 'A', 2: 'B'}[self.id_in_group]