from otree.api import * from .pages import * import logging logger = logging.getLogger(__name__) class PlayerBot(Bot): def play_round(self): if self.round_number == 1: print("********** testing ------------") yield InstructionsOnly yield ComprehensionQuestions, dict( attention_players = self.participant.vars['size'], attention_position='2nd', attention_opportunity='When previous player(s) choose(s) blue', attention_othersred = '£4', attention_othersblue = '£3', attention_majorityblue = self.participant.vars['attention_majorityblue_correct'], attention_scenarios = 'both of the above' ) yield Decision_blue, dict(chose_orange=False) elif self.round_number <= self.player.get_paradox_size(): yield Decision_blue, dict(chose_orange=False)