from otree.api import Currency as c, currency_range, expect, Bot, Submission from . import * from random import randint class PlayerBot(Bot): dice = Constants.dice def play_round(self): participant = self.participant if not (participant.no_consent or participant.unmatched or participant.dropout): if self.round_number == 1: yield NextPartIntro yield DiceRoll, dict(report=randint(self.dice[0], self.dice[1])) if self.round_number == Constants.num_rounds: yield Results