from os import environ #WageNeg Session Constants #TODO - put all "option screen" adjustments here if possible. #Configs SESSION_CONFIGS = [ dict( name = 'WageNegotiations', num_demo_participants = 2, app_sequence = ['WN_Setup', 'WN_Negotiations', 'WN_Survey'], # GLOBAL VARIABLES # ---------------- # The number of points (tokens) that each player starts with STARTING_TOKENS = 1000, # The number of points that each player recieves for each correct answer POINTS_PER_ANSWER = 75, # WORK VARIABLES # -------------- # The square dimension of the matrix. (i.e. the number of rows or column) # (ex: 6 gives a 6x6 matrix) MATRIX_SIZE = 6, # The number of matrices to be displayed in the initial work section INITIAL_MATRICES = 10, # The number of matrices to be displayed all other times NUM_MATRICES = 5, # The amount of time in seconds that users have to complete the initial work section INITIAL_WORK_TIME = 45, # The amount of time in seconds that users have to complete all other work sections MAIN_WORK_TIME = 30, # NEGOTIATION VARIABLES # --------------------- # The amount of time in seconds ppaired users have to negotiate NEGOTIATION_TIME = 60, ) ] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.01, participation_fee=0.00, doc="" ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ Welcome to Wage Negotiations """ # don't share this with anybody. SECRET_KEY = 'f7z70^x%^211ib%xszerx*jm6$8o6oa3_pn5r%w4wf&z+cv(&6' INSTALLED_APPS = ['otree'] # inactive session configs # dict(name='trust', display_name="Trust Game", num_demo_participants=2, app_sequence=['trust', 'payment_info']), # dict(name='prisoner', display_name="Prisoner's Dilemma", num_demo_participants=2, # app_sequence=['prisoner', 'payment_info']), # dict(name='volunteer_dilemma', display_name="Volunteer's Dilemma", num_demo_participants=3, # app_sequence=['volunteer_dilemma', 'payment_info']), # dict(name='cournot', display_name="Cournot Competition", num_demo_participants=2, app_sequence=[ # 'cournot', 'payment_info' # ]), # dict(name='dictator', display_name="Dictator Game", num_demo_participants=2, # app_sequence=['dictator', 'payment_info']), # dict(name='matching_pennies', display_name="Matching Pennies", num_demo_participants=2, app_sequence=[ # 'matching_pennies', # ]), # dict(name='traveler_dilemma', display_name="Traveler's Dilemma", num_demo_participants=2, # app_sequence=['traveler_dilemma', 'payment_info']), # dict(name='bargaining', display_name="Bargaining Game", num_demo_participants=2, # app_sequence=['bargaining', 'payment_info']), # dict(name='common_value_auction', display_name="Common Value Auction", num_demo_participants=3, # app_sequence=['common_value_auction', 'payment_info']), # dict(name='bertrand', display_name="Bertrand Competition", num_demo_participants=2, app_sequence=[ # 'bertrand', 'payment_info' # ]), # dict(name='public_goods_simple', display_name="Public Goods (simple version from tutorial)", # num_demo_participants=3, app_sequence=['public_goods_simple', 'payment_info']), # dict(name='trust_simple', display_name="Trust Game (simple version from tutorial)", num_demo_participants=2, # app_sequence=['trust_simple']),