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', 'Caste', 'Religion','Education','Employment'] class Instructions (Page): pass class Instructions_for_task1 (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 Performers __________ seven two-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 each Decider increasing in the amount of correct answers by his/her Performer?', 'options': ['Yes', 'No','It depends'], 'correct': 'Yes', 'hint': 'This is wrong, please reconsider.' }, { 'question': 'Consider the table below. Now, imagine that the Performer answered all questions correctly. Were the earnings of the Decider ₹500 for sure?', 'options': ['Yes', 'No','It depends'], 'correct': 'No', 'hint': 'The Decider gets access to a lottery when certain number of questions are correctly answered...' }, ] class Instructions_task1_familiarize (Page): pass page_sequence = [ Welcome, Demographics, Instructions, Instructions_task1_observer, Instructions_task1_familiarize, Instructions_task1_beliefsO, SomeUnderstandingQuestions ]