24 lines
753 B
Python
24 lines
753 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):
|
||
|
# yield (pages.Bienvenue0, {
|
||
|
# 'versionexp': random.randint(1,2),
|
||
|
# })
|
||
|
#
|
||
|
# if self.participant.vars['versionexp'] == 1:
|
||
|
# yield (pages.Bienvenue)
|
||
|
# elif self.participant.vars['versionexp'] == 2:
|
||
|
yield (pages.BienvenueBis)
|
||
|
|
||
|
|
||
|
|