from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'AS' doc = """ Transparency in Trust Game: survey """ class Constants(BaseConstants): name_in_url = 'trustGame_PreSurvey' players_per_group = 2 num_rounds = 1 participationsFee = 4 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass def make_field(label): return models.IntegerField( choices = [-2, -1, 0, 1, 2], label = label, widget = widgets.RadioSelect, ) class Player(BasePlayer): def role(self): return {1: 'A', 2: 'B'}[self.id_in_group] ppt_pre1 = make_field('I feel to get enough privacy in this setting.') ppt_pre2 = make_field('I will be comfortable with the amount of privacy I will get.') ppt_pre3 = make_field('I think my privacy will be preserved during the interaction.') ppt_pre4 = make_field('I think I will be very transparent myself.') ppt_pre5 = make_field('I am concerned about my privacy as a participant in this setting.') pot_pre1 = make_field('I will get enough transparency from others in this setting.') pot_pre2 = make_field('The level of transparency about the other participants\' behavior will be high.') pot_pre3 = make_field('The level of transparency about the other participants\' behavior will be low.') pot_pre4 = make_field('I feel comfortable with the amount of information I will get.') pot_pre5 = make_field('I feel to get a lot of transparency from others in this setting.') pot_pre6 = make_field('I have the feeling that the entire setting will be transparent.')