from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants import random class Start_Instruction(Page): #This is introduction of instruction. def vars_for_template(self): self.subsession.get_game() class Flow_Experiment(Page): #This page explains the flow of the experiment. pass class Payment(Page): #This page explains the payment method pass class Instruction_1(Page): #This page explains the order of the explanation of the main task pass class Instruction_2(Page): #This page explains the matching protocol and the number of repetitions pass class Instruction_3(Page): #This page explains the general rules of the game and strategies available pass class Instruction_4(Page): #This page explains about the disaster pass class Instruction_5(Page): #This page shows the probability distribution of disaster given the amount of accumulated trash (B) #Only shown in treatment INFO def is_displayed(self): return self.subsession.info == 1 class Instruction_5B(Page): #This page explains the relationship between A treat & B treat pass class Instruction_5C(Page): #This page gives examples pass class Instruction_6(Page): #This page explains the payoff function pass class Summary(Page): #This page shows the summary of the instructions pass page_sequence = [Start_Instruction,Flow_Experiment, Payment, Instruction_1,Instruction_2,Instruction_3,Instruction_4,Instruction_5,Instruction_5B,Instruction_5C,Instruction_6, Summary ]