from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants import random from otree.api import Submission class PlayerBot(Bot): def play_round(self): # yield (pages.P18InstructionsT6, { # 'qc_a': 400, # 'qc_b': 2200, # 'qc_c': 400, # }) # yield (pages.P19Invest, { # 'invest_risk': 600, # 'invest_riskfree': 400, # }) yield (pages.P16CRT, { 'crt_a': 2, 'crt_b': 0.25, 'crt_c': 5, 'crt_d': 4, 'crt_e': 29, 'crt_f': 3, }) # # yield (pages.P20Result) # # # # if self.player.eliminated !=0: # yield (pages.P20Pass) # yield (pages.P20ResultXX) #yield Submission(pages.P21Wait, check_html=False)