from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants from otree.api import Submission class PlayerBot(Bot): def play_round(self): yield Submission(pages.Instruction, check_html=False) yield Submission(pages.Slider, check_html=False, timeout_happened=True) if self.player.role == 'A': yield Submission(pages.RoundEnd, check_html=False, timeout_happened=False) else: yield Submission(pages.Nuclear,dict(nuclear=True), check_html=False, timeout_happened=False)