from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot import random from .models import Constants class PlayerBot(Bot): def play_round(self): #yield(pages.Info_Consent, dict(consent = 1)) yield (pages.general_study_Instructions, dict(P_ID = "thisisthePID")) yield(pages.general_study_Instructions2) yield(pages.situation_description) yield(pages.manipulation_check, dict(m_check_1 = True)) yield(pages.manipulation_check_feedback) yield (pages.dictator_game, dict(kept = c(random.randint(0, 10)))) yield (pages.Results) yield (pages.second_order_belief, dict(second_order_belief = c(random.randint(0,10))))