from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants from otreeutils.pages import AllGroupsWaitPage, ExtendedPage, UnderstandingQuestionsPage, APPS_DEBUG class Welcome(Page): pass class Demographics(Page): form_model = models.Player form_fields = ['Gender','Age','Country','Education','Employment'] class Instructions (Page): pass class Instructions_task1_observer (Page): pass class Instructions_task1_beliefsO (Page): pass class SomeUnderstandingQuestions(UnderstandingQuestionsPage): page_title = 'Some Understanding Questions On Task 1' #set_correct_answers = APPS_DEBUG # this is the default setting #set_correct_answers = True # do not fill out the correct answers in advance (this is for fast skipping through pages) form_model = models.Player questions = [ { 'question': 'The Green players __________ four three-digit numbers in every round of the task.', 'options': ['added', 'subtracted', 'multiplied', 'divided'], 'correct': 'added', 'hint': 'This is wrong, please reconsider.' }, { 'question': 'Was the probability of getting higher earnings (higher outcome) for Yellow player increasing in the amount of correct answers by his/her Green player?', 'options': ['Yes', 'No','It depends'], 'correct': 'Yes', 'hint': 'This is wrong, please reconsider.' }, { 'question': 'Does the Green players performance fully determine the Yellow players earnings?', 'options': ['Yes', 'No','It depends'], 'correct': 'No', 'hint': 'The Yellow players gets access to a lottery when certain number of questions are correctly answered...' }, { 'question': 'Suppose the earnings of the Yellow player was $1. What is the most he/she can pay to the Green player?', 'options': ['$0', '$1', '$2', 'anything'], 'correct': '$2', 'hint': 'This is wrong. The Decider has a separate amount of money from which to pay the Green player.' }, ] class Instructions_task1_familiarize (Page): pass page_sequence = [ Welcome, Demographics, Instructions, Instructions_task1_observer, Instructions_task1_familiarize, Instructions_task1_beliefsO, SomeUnderstandingQuestions ]