from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): yield(pages.Introduction) yield(pages.Round1) if self.player.role() == 'sender': yield(pages.UQ_s, {'uq1': 3, 'uq2': 1, 'uq3': 3}) yield (pages.SignalingCredit, {'change_c': 'True', 'change_c_choice': 1, 'unit_change_c_age': 1, 'unit_change_c_weight': 2, 'unit_change_c_height': 1}) yield (pages.ResultsSender) else: yield(pages.UQ_r, {'uq4': 1, 'uq5': 1}) yield (pages.RatingCredit, {'rating_c_p2': 1, 'rating_c_p3': 2, 'rating_c_p4': 2, 'rating_c_p5': 2 }) yield (pages.ResultsReceiver)