from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): yield (pages.Introduction) if self.player.id_in_group == 1: yield (pages.Accept,{'offer_accepted': True}) else: if self.group.antisocial_group: yield (pages.Antisocial, {'p2_offered': c(10)}) else: yield (pages.Offer, {'p2_offered': c(10)}) yield (pages.Results)