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, UnderstandingQuestionsPage1, APPS_DEBUG from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage class instructions_for_task1(Page): pass class instructions_task1(Page): pass class instructions_beliefsP(Page): def is_displayed(self): return self.player.role () == 'Performer' class instructions_beliefsD(Page): def is_displayed(self): return self.player.role () == 'Decider' class SomeUnderstandingQuestions(UnderstandingQuestionsPage1): page_title = 'Some Understanding Questions On The Task' #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 solve ___ puzzles in the task.', 'options': ['one', 'two', 'three', 'four'], 'correct': 'three', '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 2 instead of 1 puzzle correctly?', 'options': ['0%', '10%', '20%', 'other'], 'correct': '20%', 'hint': 'This is wrong, please reconsider.' }, ] class instructions_task1_performer(Page): def is_displayed(self): return self.player.role () == 'Performer' form_model = 'player' form_fields = ['PracticeRaven'] class instructions_task1_decider(Page): def is_displayed(self): return self.player.role () == 'Decider' class AllGroupsWaitPage1(WaitPage): wait_for_all_groups = True page_sequence = [ instructions_for_task1, instructions_task1, instructions_beliefsP, instructions_beliefsD, SomeUnderstandingQuestions, instructions_task1_performer, instructions_task1_decider, AllGroupsWaitPage1, ] #Welcome, #ComputerTerminal, #Demographics, #instructions_overall, #instructions_task1, #instructions_beliefs, #instructions_task1_performer, #SomeUnderstandingQuestions, #NormalWaitPage1,