from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): pass class Decide(Page): form_model = 'player' form_fields = ['units'] class ResultsWaitPage(WaitPage): body_text = "Waiting for the other participant to decide." <<<<<<< HEAD after_all_players_arrive = 'set_payoffs' ======= def after_all_players_arrive(self): self.group.set_payoffs() >>>>>>> 0982dc5566ffb7cb2176b6338e4f4497a3d00fc3 class Results(Page): def vars_for_template(self): <<<<<<< HEAD return dict(other_player_units=self.player.other_player().units) page_sequence = [Introduction, Decide, ResultsWaitPage, Results] ======= return { 'other_player_units': self.player.other_player().units } page_sequence = [ Introduction, Decide, ResultsWaitPage, Results ] >>>>>>> 0982dc5566ffb7cb2176b6338e4f4497a3d00fc3