from . import pages from ._builtin import Bot import random class PlayerBot(Bot): def play_round(self): yield (pages.Wait) if self.player.time_pressure == 1: yield (pages.Instructions, { 'q1': 1, 'q2': 1, 'q3': 2, 'q4': 7.5, 'q5': 7.5, 'q6': 2, 'q7': 3} ) if self.player.time_pressure == 2: yield (pages.Instructions, { 'q1': 1, 'q2': 1, 'q3': 2, 'q4': 7.5, 'q5': 7.5, 'q6': 2, 'q7': 2} ) yield (pages.Congratulations) yield (pages.Information, { 'perceived_similarity': random.randint(1, 7)} )