from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random doc = """ payment choice, reputation, and cohesion. """ class Constants(BaseConstants): name_in_url = 'payment_info' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass def make_field(label): return models.IntegerField( choices=[ [1,'strongly disagree'], [2,'disagree'], [3,'neutral'], [4,'agree'], [5,"strongly agree"] ], label=label, widget=widgets.RadioSelect, ) class Player(BasePlayer): answer = models.IntegerField(min=1,max=3) q1 = make_field("when I made my decisions, I felt conspicuous (being evaluated).") q1_1 = make_field("The outcome of the game was dependent on the decisions of other group members.") q1_2 = make_field("Other people in my group and I were competing for the pool.") q2 = make_field("my group would be willing to help one another.") q3 = make_field("my group can be trusted.") q4 = make_field("my group can get along with one another.") q5 = make_field("my group shares the same values.") q6 = make_field("my group is close-knit.")