from otree.api import Currency as c, currency_range, expect, Bot from . import * import random class PlayerBot(Bot): def play_round(self): yield Instrucciones2 questions = ['s1t200', 's1t201', 's1t202', 's1t203', 's1t204', 's1t205', 's1t206', 's1t207', 's1t208', 's1t209', 's1t210', 's1t211', 's1t212', 's1t213', 's1t214', 's1t215', 's1t216', 's1t217', 's1t218', 's1t219', 's1t220', 's1t221'] # Esta no es una representación realista de como son las decisions pero no me importa cutoff_value = random.randint(0, len(questions)) answers = [1 for _ in range(cutoff_value + 1)] + [2 for _ in range(21 - cutoff_value)] yield table2, dict(zip(questions, answers))