# from otree.api import Currency as c, currency_range # from . import pages # from ._builtin import Bot # from .models import Constants from otree.api import * from .pages import * import logging logger = logging.getLogger(__name__) from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): if self.round_number == 1: print("********** testing in round 1 ------------") yield Instructions yield Submission(GamePage, {'star_rating': 2.0}, check_html=False) # yield GamePage, dict( # star_rating=3.0, # check_html=False # ) elif self.round_number < 40: print("********** testing in round 2 - before last gameover------------") yield Submission(GamePage, {'star_rating': 2.0}, check_html=False) else: print("********** testing in last round ------------") yield Submission(GamePage, {'star_rating': 2.0}, check_html=False) yield Results # if self.round_number == Constants.num_rounds