from otree.api import * doc = """ instructions """ class C(BaseConstants): NAME_IN_URL = 'instructions' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass def set_payoffs(player: Player) -> object: player.payoff = 0 # PAGES class InstructionPage(Page): @staticmethod def before_next_page(player: Player, timeout_happened): player.participant.vars['outcomes'] = [] set_payoffs(player) page_sequence = [InstructionPage]