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_PostSurvey' 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_post1 = make_field('I felt to get enough privacy in this setting.') ppt_post2 = make_field('I was comfortable with the amount of privacy I got.') ppt_post3 = make_field('I think my privacy was preserved during the interaction.') ppt_post4 = make_field('I think I was very transparent myself.') ppt_post5 = make_field('I was concerned about my privacy as a participant in this setting.') pot_post1 = make_field('I got enough transparency from others in this setting.') pot_post2 = make_field('The level of transparency about the other participants\' behavior was high.') pot_post3 = make_field('The level of transparency about the other participants\' behavior was low.') pot_post4 = make_field('I felt comfortable with the amount of information I got.') pot_post5 = make_field('I felt to get a lot of transparency from others in this setting') pot_post6 = make_field('I had the feeling that the entire setting was transparent.') intention1 = make_field('What others thought of me.') intention2 = make_field('If and how many ECUs the other person was going to send back.') intention3 = make_field('If people were able to identify me.')