from otree.api import Currency as c, currency_range, expect, Bot from . import * class PlayerBot(Bot): def play_round(self): if self.round_number < 6: yield MyPage yield (Ind_module1, dict(choicen1='A'), ) yield ( Ind_module2, dict(choicea1_1='C'), ) if self.player.key_s == '5': yield ( Ind_module3, dict(spa_1='A'), ) if self.player.key_s == '4': yield ( Ind_module3, dict(spa_2='B'), ) if self.player.round_number == C.NUM_ROUNDS: yield Ind_Results