from otree.api import * from helpers import * from otree import settings doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = "intro" PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 TIME_ON_TASK = MIN_ON_TASK class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class Start(Page): pass class Introduction(Page): pass class Welcome(Page): pass class PayoffInstructions(Page): @staticmethod def vars_for_template(player: Player): points_per_euro = 1 / player.session.config["real_world_currency_per_point"] return dict( conversion=cu(points_per_euro).to_real_world_currency(player.session), points_per_euro=points_per_euro, POINTS_CUSTOM_NAME=settings.POINTS_CUSTOM_NAME, ) class TaskInstructions(Page): pass page_sequence = [Start, Introduction, Welcome, PayoffInstructions, TaskInstructions]