from otree.api import * c = cu doc = "This is a simplified trust game as we just need the participant's receiver roll to test his/her trustworthiness. We choose a table form where the participant chooses what to send back by different amounts received." class C(BaseConstants): NAME_IN_URL = 'TrustgameSimplified' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 ENDOWMENT = 10 MULTIPLIER = 3 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): input_1 = models.IntegerField(max=3, min=0) input_2 = models.IntegerField(max=6, min=0) input_3 = models.IntegerField(max=9, min=0) input_4 = models.IntegerField(max=12, min=0) input_5 = models.IntegerField(max=15, min=0) input_6 = models.IntegerField(max=18, min=0) input_7 = models.IntegerField(max=21, min=0) input_8 = models.IntegerField(max=24, min=0) input_9 = models.IntegerField(max=27, min=0) input_10 = models.IntegerField(max=30, min=0) class Amount_returned(Page): form_model = 'player' form_fields = ['input_1', 'input_2', 'input_3', 'input_4', 'input_5', 'input_6', 'input_7', 'input_8', 'input_9', 'input_10'] page_sequence = [Amount_returned]