from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'my_svo' players_per_group = None num_rounds = 1 instructions_template = 'my_svo/Instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass # All these values gotten from Murphy: http://ryanomurphy.com/styled-2/downloads/files/SVO_slider_va_p1.pdf class Player(BasePlayer): test_question_1 = models.StringField( choices=["you receive 85; other receives 85", "you receive 85; other receives 76", "you receive 85; other receives 68", "you receive 85; other receives 59", "you receive 85; other receives 50", "you receive 85; other receives 41", "you receive 85; other receives 33", "you receive 85; other receives 24", "you receive 85; other receives 15"], widget=widgets.RadioSelect() ) test_question_2 = models.StringField( choices=["you receive 85; other receives 15", "you receive 87; other receives 19", "you receive 89; other receives 24", "you receive 91; other receives 28", "you receive 93; other receives 33", "you receive 94; other receives 37", "you receive 96; other receives 41", "you receive 98; other receives 46", "you receive 100; other receives 50"], widget=widgets.RadioSelect() ) test_question_3 = models.StringField( choices=["you receive 50; other receives 100", "you receive 54; other receives 98", "you receive 59; other receives 96", "you receive 63; other receives 94", "you receive 68; other receives 93", "you receive 72; other receives 91", "you receive 76; other receives 89", "you receive 81; other receives 87", "you receive 85; other receives 85"], widget=widgets.RadioSelect() ) test_question_4 = models.StringField( choices=["you receive 50; other receives 100", "you receive 54; other receives 89", "you receive 59; other receives 79", "you receive 63; other receives 68", "you receive 68; other receives 58", "you receive 72; other receives 47", "you receive 76; other receives 36", "you receive 81; other receives 26", "you receive 85; other receives 15"], widget=widgets.RadioSelect() ) test_question_5 = models.StringField( choices=["you receive 100; other receives 50", "you receive 94; other receives 56", "you receive 88; other receives 63", "you receive 81; other receives 69", "you receive 75; other receives 75", "you receive 69; other receives 81", "you receive 63; other receives 88", "you receive 56; other receives 94", "you receive 50; other receives 100"], widget=widgets.RadioSelect() ) test_question_6 = models.StringField( choices=["you receive 100; other receives 50", "you receive 98; other receives 54", "you receive 96; other receives 59", "you receive 94; other receives 63", "you receive 93; other receives 68", "you receive 91; other receives 72", "you receive 89; other receives 76", "you receive 87; other receives 81", "you receive 85; other receives 85"], widget=widgets.RadioSelect() ) comprehension_question_1 = models.StringField(choices = ('True', 'False'), widget=widgets.RadioSelectHorizontal() ) comprehension_question_2 = models.StringField(choices = ('True', 'False'), widget=widgets.RadioSelectHorizontal() )