from otree.api import Currency as c, currency_range, expect, Bot from . import * import random class PlayerBot(Bot): def play_round(self): corrects = get_correct_answers(self.player) yield P00_Instructions answers_P01_Quiz1 = {} answers_P01_Quiz1['T01_Q01'] = corrects[0] answers_P01_Quiz1['T01_Q02'] = corrects[1] answers_P01_Quiz1['T01_Q03'] = corrects[2] answers_P01_Quiz1['T01_Q04'] = corrects[3] yield Submission(P01_Quiz1, answers_P01_Quiz1) yield P02_Feedback1