from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '\nPlayer decides how to divide points between himself and another player.' class Constants(BaseConstants): name_in_url = 'dictator' players_per_group = None num_rounds = 1 instructions_template = 'dictator/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): held1 = models.IntegerField(label='tokens to hold (to yourself) at 3 point each.', max=40, min=0) passed1 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=40, min=0) held2 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=75, min=0) passed2 = models.IntegerField(label='tokens to pass (to the other) at 2 point each.', max=75, min=0) held3 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=40, min=0) passed3 = models.IntegerField(label='tokens to pass (to the other) at 3 point each.', max=40, min=0) held4 = models.IntegerField(label='tokens to hold (to yourself) at 2 point each.', max=60, min=0) passed4 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=60, min=0) held5 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=60, min=0) passed5 = models.IntegerField(label='tokens to pass (to the other) at 2 point each.', max=60, min=0) held6 = models.IntegerField(label='tokens to hold (to yourself) at 2 point each.', max=75, min=0) passed6 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=75, min=0) held7 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=60, min=0) passed7 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=60, min=0) held8 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=100, min=0) passed8 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=100, min=0) held9 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=80, min=0) passed9 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=80, min=0) held10 = models.IntegerField(label='tokens to hold (to yourself) at 1 point each.', max=40, min=0) passed10 = models.IntegerField(label='tokens to pass (to the other) at 4 point each.', max=40, min=0) held11 = models.IntegerField(label='tokens to hold (to yourself) at 4 point each.', max=40, min=0) passed11 = models.IntegerField(label='tokens to pass (to the other) at 1 point each.', max=40, min=0) identifier = models.IntegerField(label='Write your first personal identifier (for the drawing) here', max=9999, min=1000) identifier2 = models.IntegerField(label='Write your 2nd indentifier (for collection of rewards) here', max=9999, min=1000)