from otree.api import Currency as c, currency_range, expect, Bot, Submission from . import * from random import choice class PlayerBot(Bot): def play_round(self): if self.round_number == 1: yield PartIntro yield Instructions yield Example, dict(option=choice(self.session.vars['eyes_options'][0])) yield TaskIntro yield Task, dict(option=choice(self.session.vars['eyes_options'][self.round_number]))