from otree.api import Currency as c, currency_range, expect, Bot from . import * class PlayerBot(Bot): def play_round(self): yield Intro if self.player.id_in_group <= C.PLAYERS_PER_GROUP // 2: yield ExpDe, dict(overtreat1=True, overtreat2=True, overtreat3=True,overtreat4=False,overtreat5=False, overtreat6=False,) yield ExpGuess, dict(conacceptH=5, conacceptL=3, opponentOvertreat=0) yield ExpResults elif self.player.id_in_group > C.PLAYERS_PER_GROUP // 2: yield ConDe, dict(acceptH=True, acceptL=True) yield ConGuess, dict(honestOffer=0) #,honestExp=0) yield ConResults if self.round_number == C.NUM_PRACTICE_ROUNDS + 8: yield Passtonewsec, dict(password=695) if self.round_number == C.NUM_ROUNDS: yield Endgame yield Risk, dict(risk=2.6)