from otree.api import Currency as c, currency_range, Submission
from . import pages
from ._builtin import Bot
from .models import Constants
import random


# **********************************************************************************************************************
# *** BOT
# **********************************************************************************************************************
class PlayerBot(Bot):
    def play_round(self):

        if self.participant.vars['versionexp'] == 1:
            yield (pages.Risk_BinsWanger_qc)

            yield (pages.Risk_BinsWanger_qc2, {
                'riskqc_a': 1,
                'riskqc_b': 3,
                'riskqc_c': 1,
            })

            yield (pages.Risk_BinsWanger, {
                'choicerisk': random.randint(1, 5),
            })

            yield (pages.Jeu2End)



