from otree.api import Currency as c from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): if self.round_number == 1: yield pages.Instructions if self.round_number == 1: yield pages.ControlQuestion, dict(QuestionPG=18, Questionme=24) if self.round_number == 1: yield pages.Results if self.round_number == 1: yield pages.Start if self.round_number != 1: yield pages.Info if self.player.Info == True: yield pages.DiscoveryUmpire yield pages.Contribution, dict(contribution=0) if self.round_number == 1: yield pages.PayoffRound1 if self.round_number != 1: yield pages.Payoff2 if self.round_number == 10: yield pages.Ringraziamento