from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants import json class MyPage(Page): form_model = 'player' form_fields = ['name' , 'age'] def is_displayed(self): return self.round_number == 1 class Results(Page): pass class info(Page): def is_displayed(self): return self.round_number == 1 class comone(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['1'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comtwo(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['2'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comthree(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['3'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comfour(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['4'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comfive(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['5'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comsix(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['6'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comseven(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['7'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comeight(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['8'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comnine(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['9'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] class comten(Page): def is_displayed(self): return self.round_number == self.participant.vars['task_rounds']['10'] form_model = models.Player form_fields = ['choice1','choice2','choice3','choice4','choice5','choice6','choice7','choice8','choice9','choice10', 'choice11','choice12'] page_sequence = [ MyPage, info, comone, comtwo, comthree, comfour, comfive, comsix, comseven, comeight, comnine, comten ]