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): if self.round_number == 1 or self.round_number == 5: yield (pages.Introduction) if self.player.id_in_group == 4: yield (pages.Submission, {'sub1': 0, 'sub2': 2, 'sub3': 3, 'sub4': 4, 'sub5': 1}) else: yield (pages.Submission, {'sub1': 1, 'sub2': 2, 'sub3': 3, 'sub4': 4, 'sub5': 0}) yield (pages.Results)