from otree.api import * from shared.role import Role from shared.helpers import PROLIFIC_URL doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = "game_results" PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 DICTATOR = Role.DICTATOR RECEIVER = Role.RECEIVER PROLIFIC_URL = PROLIFIC_URL class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class Results(Page): @staticmethod def is_displayed(player: Player): # Only show results of game if game was played return "real_effort" in player.session.config["app_sequence"] page_sequence = [Results]