from otree.api import Currency as c from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): import random if self.round_number == 1: yield pages.Introduction yield pages.Contribute, dict(contribution=random.randint(0,Constants.endowment)) yield pages.Results