from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class RoundForPayoff(Page): def is_displayed(self): return self.round_number == Constants.num_rounds def before_next_page(self): self.player.set_final_payoff() class FinalPayoff(Page): def is_displayed(self): return self.round_number == Constants.num_rounds page_sequence = [RoundForPayoff, FinalPayoff]