from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'survey_draft1a' players_per_group = None num_rounds = 1 date_session_selected = "5 May 2020" date_ddl_part1 = "1 May 2020" exp_length_exp1 = "30 minutes" points100_value_eur = "0.20 Euros (20 cents)" dg_istr_X_pointsA = 1040 dg_istr_X_pointsB = 600 dg_istr_Y_pointsA = 850 dg_istr_Y_pointsB = 850 dg_CQ_X_pointsA = 1010 dg_CQ_X_pointsB = 190 dg_CQ_Y_pointsA = 730 dg_CQ_Y_pointsB = 470 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): cq1_income_gap_X = models.IntegerField(label="(a) How large is the income gap (in points) between you and\ Person B in case of selection of distribution X") cq1_income_gap_Y = models.IntegerField(label="(b) How large is the income gap (in points) between you and\ Person B in case of selection of distribution Y") cq1_aggr_income_gap_X = models.IntegerField(label="(c) How large is the aggregate income (in points) of you\ and Person B for distribution X") cq1_aggr_income_gap_Y = models.IntegerField(label="(d) How large is the aggregate income (in points) of you\ and Person B for distribution Y")