from otree.api import Bot, Currency as c from . import pages from .models import Constants app = pages cu = c class PlayerBot(Bot): def play_round(self): import math if self.round_number == 1: yield pages.Instructions yield pages.Decision, dict(volunteer=False) yield pages.Results if self.player.round==math.ceil(Constants.new_match_periods[self.player.match-1]/Constants.block_size)*Constants.block_size: yield pages.EndOfMatch