from otree.api import * class C(BaseConstants): NAME_IN_URL = 'intro' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # FUNCTIONS def creating_session(subsession): #TREATMENT import itertools treatment_cycle = itertools.cycle(['C','MM','FF','MF','FM']) if 'treatment' in subsession.session.config: for player in subsession.get_players(): participant = player.participant participant.treatment = subsession.session.config['treatment'] else: for player in subsession.get_players(): participant = player.participant participant.treatment = next(treatment_cycle) # PAGES class Screen1(Page): pass page_sequence = [Screen1]