from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants from time import sleep class PlayerBot(Bot): def play_round(self): if self.round_number <= 1: yield pages.Introduction # yield pages.instruction1 # yield pages.instruction2 # yield pages.instruction3 # yield pages.instruction4 # yield pages.instruction5 # sleep(3) if self.round_number % 2 == 1: yield pages.Decision, {"decision": 'Cooperate'} else: yield pages.Decision, {"decision": 'Defect'} yield pages.Results