from otree.api import * author = 'Patricia Zauchner (zauchner@uni-bremen.de)' doc = """ Introduction to the game. Here, the background variables are set. """ # Models class C(BaseConstants): NAME_IN_URL = 'intro_paper_instruction' PLAYERS_PER_GROUP = 5 NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass # First shuffling -> Group Assignment def creating_session(subsession: Subsession): import random subsession.group_randomly() # oTree function subsession.session.vars['id_matrix'] = subsession.get_group_matrix() class Group(BaseGroup): pass class Player(BasePlayer): pass # Pages class Intro_paper(Page): """ Welcome to the experiment """ pass class WaitForAll(WaitPage): """ Waiting for all participants to start """ wait_for_all_groups = True body_text = "Bitte warten Sie, bis alle Teilnehmenden die Instruktionen gelesen haben." page_sequence = [ Intro_paper, WaitForAll ]