from otree.api import Bot from . import * import random class PlayerBot(Bot): def play_round(self): random_answer = random.randint(1, 7) yield Questionnaire_SelfDetermination, dict(self_determination_1 = random_answer, self_determination_2 = random_answer, self_determination_3=random_answer, self_determination_4=random_answer, self_determination_5=random_answer, self_determination_6=random_answer, self_determination_7=random_answer, self_determination_8=random_answer, self_determination_9=random_answer, autonomy_1=random_answer, autonomy_2=random_answer, autonomy_3=random_answer, ACQ_1=random_answer) random_age = random.randint(18, 70) yield Demographics, dict(age = random_age, gender = 'Male', country='Germany', education='Bachelor“s degree', income='30,000$-45,000$') yield TechnicalQuestion, dict(TechnicalQuestion = 'No') yield CombinedResults