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_online_instruction' PLAYERS_PER_GROUP = 5 NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass # First shuffling -> Group Assignment def creating_session(subsession: Subsession): 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() print(subsession.session.vars['id_matrix']) class Group(BaseGroup): pass class Player(BasePlayer): pass # Pages class Intro_click(Page): """ Welcome to the experiment """ pass page_sequence = [ Intro_click ]