from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants import random class PlayerBot(Bot): def play_round(self): yield (pages.Introduction) yield (pages.Questions, {'female': random.randint(0,1), 'age': random.randint(1,25), 'grade': random.randint(0,4), 'department': random.randint(1,10), 'other_department': 'a', 'covid_effect': random.randint(1,3), 'precaution': random.randint(1,3), 'worries': random.randint(1,3), 'relations': random.randint(1,3), 'worries2': random.randint(1,3), 'relatives': random.randint(0,1), 'relatives_number': random.randint(0,1), 'perception': random.randint(1,3), 'living': random.randint(0,2), 'living_number': random.randint(1,2), 'meeting': random.randint(1,2), 'location': random.randint(1,2), 'team_work1': random.randint(0,6), 'team_work2': random.randint(0,6), 'team_work3': random.randint(0,6) }) yield (pages.End)