from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) from static_data.choices_data import data, gamble from static_data.rnd_numbers import rnd_numbers author = "Your name here" doc = """ Your app description """ class Constants(BaseConstants): name_in_url = "riskResolution" players_per_group = None num_rounds = 105 rnd_numbers = rnd_numbers envelopes = data gamble = gamble class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): risk_input = models.StringField() risk_input_helper = models.BooleanField() lose_flag = models.BooleanField() risky_payoff = models.FloatField() endow_payoff = models.FloatField() base_endowment = models.FloatField() # feedback_probabilities = models.IntegerField( # label="I have trouble with understanding probabilities:", # choices=[ # [1, "Disagree"], # [2, "Rather disagree"], # [3, "Neither agree nor agree"], # [4, "Rather agree"], # [5, "Agree"], # ], # widget=widgets.RadioSelectHorizontal, # ) feedback_understanding = models.IntegerField( label="Were the experiment and the decisions that you had to make well explained?", choices=[ [1, "No"], [2, "Rather no"], [3, "So and so"], [4, "Rather yes"], [5, "Yes"], ], widget=widgets.RadioSelectHorizontal, ) feedback_fun = models.IntegerField( label="How certain were you about making your decisions?", choices=[ [1, "Not very"], [2, "Rather uncertain"], [3, "So and so"], [4, "Rather certain"], [5, "Very certain"], ], widget=widgets.RadioSelectHorizontal, ) # feedback_payment = models.IntegerField( # label="The payment is fair:", # choices=[ # [1, "Disagree"], # [2, "Rather disagree"], # [3, "Neither agree nor agree"], # [4, "Rather agree"], # [5, "Agree"], # ], # widget=widgets.RadioSelectHorizontal, # ) feedback_final_remarks = models.LongStringField( label="Do you have any feedback for us?", blank=True )