from otree.api import Currency as c, currency_range, expect from . import pages from ._builtin import Bot from .models import Constants import random class PlayerBot(Bot): def play_round(self): yield pages.BonusQuestions, dict(risk=random.randint(0, 50)) yield pages.BonusQuestions2, dict(prob1=random.randint(1, 5), prob2=random.randint(1, 5), prob3=random.randint(1, 5)) # expect(self.player.payoff, 75 or 139)