from otree.api import * from datetime import date doc = """ This application provides a webpage instructing participants how to get paid. Examples are given for the lab and Amazon Mechanical Turk (AMT). """ class C(BaseConstants): NAME_IN_URL = 'General_Intro' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 INSTRUCTIONS_TEMPLATE = 'General_Intro/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # FUNCTIONS # PAGES class WELCOME(Page): @staticmethod def is_displayed(player): return player.round_number == 1 class Genel(Page): pass class IntroWaitPage(WaitPage): wait_for_all_groups = True page_sequence = [WELCOME, Genel, IntroWaitPage]