32 lines
810 B
Python
32 lines
810 B
Python
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.player.id_in_group == 1:
|
|
yield (pages.L_risk11_qc, {
|
|
'risk11_qc_a': 2,
|
|
'risk11_qc_b': 4,
|
|
'risk11_qc_c': 1,
|
|
})
|
|
|
|
yield (pages.M_risk11, {
|
|
'risk11_a': 9,
|
|
'risk11_b': 1,
|
|
})
|
|
|
|
yield (pages.Jeu1End)
|
|
|
|
|
|
|
|
|
|
|
|
|