from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Introduction(Page): form_model = 'player' def is_displayed(self): return self.subsession.round_number == 1 class ChooseSite(Page): form_model = 'player' form_fields = ['next_site'] timeout_seconds = 5 class WaitForResult(WaitPage): body_text = 'Waiting for the other player to decide...' def after_all_players_arrive(self): self.group.get_result() class ShowPayoff(Page): form_model = 'player' timeout_seconds = 5 page_sequence = [Introduction, ChooseSite, WaitForResult, ShowPayoff]