from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants from random import choice class PlayerBot(Bot): def play_round(self): if self.participant.vars['curr_app'] == 'coordination': if self.round_number == 1: yield (pages.TaskCrdInstructions) yield (pages.TaskCrdDecision, {'coordinate_decision': choice(['A', 'B'])}) yield (pages.TaskCrdResults)