from otree.api import Currency as c, currency_range from . import views from ._builtin import Bot from .models import Constants import random class PlayerBot(Bot): def play_round(self): sub_q = random.choice(['ch1','ch2','ch3','ch4','ch5','ch6','ch7']) yield (views.Question, {'submitted_answer': self.player.current_question()[sub_q]}) if self.subsession.round_number == Constants.num_rounds: yield (views.Results)