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.participant.vars['curr_app'] == 'cooperation': if self.round_number == 1: yield (pages.TaskCprInstructions) yield (pages.TaskCprDecision, {'cooperate_decision': 0.1}) yield (pages.TaskCprResults)