from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Introduction(Page): #This slide explains that we provide payment information def vars_for_template(self): self.subsession.get_game() self.player.get_payment() class Result1(Page): def vars_for_template(self): return dict( Cont_list = self.participant.vars['Cont_hist'], Payoff_list = self.participant.vars['Payoff_hist'], Trash_list = self.participant.vars['TrashB_hist'], Disaster_list = self.participant.vars['Disaster_hist'] ) class Result2(Page): def vars_for_template(self): return dict( Risk_list = [['くじM','くじW'][p] for p in self.participant.vars['Risk_Choices']], Ambiguity_list = [['くじM','くじW'][p] for p in self.participant.vars['Ambiguity_Choices']], Card_RB = ['赤','赤','赤','赤','赤','黒','黒','黒','黒','黒'][self.player.payment2_card - 1] ) class Final(Page): pass page_sequence = [Introduction, Result1, Result2, Final]