from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) class Constants(BaseConstants): name_in_url = 'confirmation_problem' players_per_group = None num_rounds = 1 instructions_template = 'confirmation_problem/instructionsA.html' instructions_templateB = 'confirmation_problem/instructionsB.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Problem_Q1A = models.IntegerField(label='''所持金1000円から被災地に450円分寄付をする時、自分の利得はいくらになりますか?''', min=0, max=1000) Problem_Q1B = models.IntegerField(label='''寄付しない時、自分の利得はいくらになりますか?(ただし、所持金は1000円とします)''', min=0, max=1000) Problem_Q2A = models.IntegerField(label='''所持金1000円から被災地に300円分寄付をする時、最終的に被災地に届けられる寄付金額はいくらになりますか?(ただし、マッチング寄付割合は25%とします)''', min=0, max=1000) Problem_Q2B = models.StringField( choices=[["1", '正しい'], ["0", '正しくない']], label='''「当選・落選制度」により、当選と表示されたとき、実際に被災地に寄付をするのは実験者ですか?''', widget=widgets.RadioSelect)