from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Diya Ganguly' doc = """ This is the Quiz for the players before they start playing the bargaining game """ class Constants(BaseConstants): name_in_url = 'Quiz' players_per_group = 2 num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): quiz2 = models.StringField(choices=[['1', 'True'], ['2', 'False']], label='2) You earn an additional benefit on top of your rental income if the renter chooses Action G.', widget=widgets.RadioSelectHorizontal) def quiz2_error_message(self, value): if value != '2': return 'The answer to the statement is wrong' quiz5 = models.StringField(choices=[['1', 'True'], ['2', 'False']], label='3) The person you play with changes through the decision-making task.', widget=widgets.RadioSelectHorizontal) def quiz5_error_message(self, value): if value != '2': return 'The answer to the statement is wrong' quiz6 = models.StringField(label='4) An example of a payoff table is given below. What is your payoff if you choose a fixed rental contract with discount value of 1 point and the renter chooses Action D? Please write your answer in the box given below') def quiz6_error_message(self, value): if value != '20': return 'The answer to the statement is wrong' quiz7=models.StringField(choices=[['1','True'],['2','False']],label='5) The passage that you read for your reflection task stated that if you have a strong feminine side, you place low value on others',widget=widgets.RadioSelectHorizontal) def quiz7_error_message(self,value): if value!= '2': return 'The answer to the statement is wrong' Ques2 = models.StringField(choices=[['1', 'True'], ['2', 'False']], label='2) Action D is costlier to implement compared to Action G.', widget=widgets.RadioSelectHorizontal) def Ques2_error_message(self, value): if value != '1': return 'The answer to the statement is wrong' Ques5 = models.StringField(choices=[['1', 'True'], ['2', 'False']], label='3) The person you play with changes through the decision-making task.', widget=widgets.RadioSelectHorizontal) def Ques5_error_message(self, value): if value != '2': return 'The answer to the statement is wrong' Ques6 = models.StringField(label='4) An example of a payoff table is given below. What is your payoff if you receive a discounted rental contract of 1 point and you choose Action D? Please write your answer in the box given below.', ) def Ques6_error_message(self, value): if value != '11': return 'The answer to the statement is wrong' Ques7=models.StringField(choices=[['1','True'],['2','False']],label='5) The passage that you read for your reflection task stated that if you have a strong masculine side, you are not in charge of your life and have no sense of internal control.',widget=widgets.RadioSelectHorizontal) def Ques7_error_message(self,value): if value!= '2': return 'The answer to the statement is wrong' quiz8= models.StringField(choices=[['1','Owner'],['2','Renter']],label='1)What is your role in this Decision Task?',widget=widgets.RadioSelectHorizontal) def quiz8_error_message(self,value): if value!= '1': return 'The answer to the statement is wrong' Ques8=models.StringField(choices=[['1','Owner'],['2','Renter']],label='1)What is your role in this Decision Task?',widget=widgets.RadioSelectHorizontal) def Ques8_error_message(self, value): if value!='2': return 'The answer to the statement is wrong' quiz9= models.StringField(choices=[['1','Yes'],['2','No']],label='6) On the basis of the instructions provided to you, do you know the gender of the person you are interacting with? ') def quiz9_error_message(self, value): if value !='1': return 'The gender of the participant you are interacting with is represented by the icon of the Renter displayed in the payoff tables' Ques9= models.StringField(choices=[['1','Yes'],['2','No']],label='6) On the basis of the instructions provided to you, do you know the gender of the person you are interacting with?') def Ques9_error_message(self,value): if value!='1': return 'The gender of the participant you are interacting with is represented by the icon of the Owner displayed in the payoff tables' class Player(BasePlayer): pass