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.player.round_number == 1: yield (pages.Introduction, {'test_question_1': 45, 'test_question_2': 40, 'test_question_3': 10, 'test_question_4': "False", 'test_question_5': "True", 'age': 31, 'gender': 'male'}) yield (pages.Offer, {'amount_offered': 0}) yield (pages.Results) # if self.player.round_number == (Constants.num_rounds/2): # yield (pages.Switch_SocNonSoc)