from otree.api import * from time import time doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'instruction3' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): time = models.FloatField(initial=0) # Used to count the time spent on each choice # PAGES class Instruction1(Page): pass class Practice1(Page): pass class Practice2(Page): pass class Practice3(Page): pass class Practice4(Page): pass class Instruction2(Page): def before_next_page(player, timeout_happened): player.time = time() class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [Instruction1,Practice1,Practice2,Practice3,Practice4,Instruction2]