from otree.api import Currency as c, currency_range, expect, Bot, SubmissionMustFail from . import * import random class PlayerBot(Bot): def play_round(player): if player.round_number == 1: yield Start yield Introduction yield Comprehension, dict(comprehension1=1, comprehension2=2) yield NeueRunde if player.round_number <= 2: yield Deontology, dict(Frage_1=random.randint(1, 11), Sicht1=0, Sicht2=0) if player.round_number >= 3: yield Deontology, dict(Frage_1=12, Sicht1=random.randint(1, 11), Sicht2=random.randint(1, 11)) if player.round_number == 4: yield Result