from otree.api import * c = Currency doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'real_effort_task' players_per_group = None num_rounds = 1 # they just have to move on bat_and_ball = 1 lili_pad = 26 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): number_entered_ball = models.IntegerField() # PAGES class AttentionCheck(Page): # check: the double if, the byebye for who makes mistakes, and so on form_model = "player" form_fields = ["number_entered_ball"] class Mistake(Page): @staticmethod def is_displayed(player: Player): if Player.number_entered_ball != Constants.bat_and_ball: # dopo questa รจ fuori, you may have repeated return True # yourself up. else: return False class Results(Page): @staticmethod def is_displayed(player: Player): if Player.number_entered_ball == Constants.bat_and_ball: return True else: return False page_sequence = [AttentionCheck, Results, Mistake]