from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = """ This is a one-shot "Prisoner's Dilemma". Two players are asked separately whether they want to cooperate or defect. Their choices directly determine the payoffs. """ class Constants(BaseConstants): name_in_url = 'Firstinfo' players_per_group = None num_rounds = 1 Consent内容_template = 'Firstinfo/Consent内容.html' Firstinst内容_template = 'Firstinfo/Firstinst内容.html' instructions_template = 'Firstinfo/instructions.html' paticipant_template = 'Firstinfo/paticipants.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent = models.StringField( choices=[['送信済み', '記入し、メールにて同意書のデータを送信しました。'], ['印刷忘れ', '後日記入し、メールにて同意書のデータを送信します。']], label='あなたの同意書記入・送信状況 ', widget=widgets.RadioSelect, ) age = models.IntegerField(label='年齢', min=13, max=125) gender = models.StringField( choices=[['Male', 'Male'], ['Female', 'Female']], label='性別', widget=widgets.RadioSelect, ) name = models.StringField(label='名前',)