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'] 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 Performer will __________ seven two-digit numbers in the task.', 'options': ['add', 'subtract', 'multiply', 'divide'], 'correct': 'add', 'hint': 'This is wrong, please reconsider.' }, { 'question': 'Is the probability of getting higher earnings for the Decider increasing in the amount of correct answers by the Performer?', 'options': ['Yes', 'No','It depends'], 'correct': 'Yes', 'hint': 'This is wrong, please reconsider.' }, { 'question': 'Suppose the earnings of the Decider is ₹500. What is the most he/she can pay to the Performer?', 'options': ['₹0', '₹250', '₹350','₹500'], 'correct': '₹350', 'hint': 'This is wrong. The Decider has a separate amount of money from which to pay the Performer.' }, { 'question': 'Consider the table below. Now, imagine that the Performer answers all questions correctly. Are 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...' }, { 'question': 'Consider the table below. By how much does the probability of getting ₹500 for the Decider increase if the Performer answers 3 instead of 2 questions correctly?', 'options': ['0%', '10%', '20%', 'other'], 'correct': '10%', 'hint': 'This is wrong, please reconsider.' }, ] class Instructions_task1_familiarize (Page): pass page_sequence = [ Welcome, Demographics, Instructions, Instructions_for_task1, Instructions_task1_observer, Instructions_task1_beliefsO, Instructions_task1_familiarize, ]