from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants import random class PlayerBot(Bot): def play_round(self): yield (pages.Decision, {"action": random.choice(['X','Y'])}) yield (pages.Results) if (Constants.round_in_interactions[self.subsession.round_number-1] == Constants.interaction_length[Constants.interactions[self.subsession.round_number - 1]-1]): yield (pages.InteractionResults)