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_simple_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): name = models.StringField(label = "氏名", blank = True) age = models.IntegerField(label = "年齢", min = 12, max =24) nat = models.StringField(label = "国籍", choices=['JPN', 'ENG'],) decision = models.IntegerField(label = "決定", choices=[[1, '協力'], [0, '非協力'],], widget=widgets.RadioSelect)