from otree.api import * import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from session_utils import update_participant_state, get_session_status, try_add_participant_if_space doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'instructions' PLAYERS_PER_GROUP = 3 NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class Instructions(Page): @staticmethod def is_displayed(player): return True def vars_for_template(player: Player): treatment = player.session.config.get('treatment', 'control') image = "images/instructions1.png" return dict( image = image, round = player.round_number ) class InstructionsWait(WaitPage): pass class Results(Page): pass page_sequence = [Instructions]