from os import environ SESSION_CONFIGS = [ # dict( # name='guess_two_thirds', # display_name="Guess 2/3 of the Average", # app_sequence=['guess_two_thirds', 'payment_info'], # num_demo_participants=3, # ), # dict( # name='network_guess_instructions_and_test', # display_name='Instructions for Anchored Guessing Games', # app_sequence=['network_guess_instructions_and_test'], # num_demo_participants=3, # dropbox_games_url = "", # control_timeout = 20, # game_sequence='["Net1","Net3-2"]', # num_rounds_per_game = 4, # control_threshold = 0, # show_netwoks = True, # max_submissions_per_game = 8 # ), dict( name='network_guess', display_name='Anchored Guessing Games (Spanish)', app_sequence=['demographics', 'network_guess_instructions_and_test', 'network_guess', 'crt'], num_demo_participants=12, dropbox_games_url = "", #game_sequence='["Net-3-1-B", "Net-3-2-B", "Net-3-3-B", "Net-3-1-80", "Net-3-2-80", "Net-3-3-80", "Net-3-1-10", "Net-3-2-10", "Net-3-3-10"]', game_sequence = '["UA1-BBB", "UA2-BBB", "UA1-BB80", "UA2-BB80", "UA4-BBBB", "UA1-B8080", "UA2-B8080", "UA4-BBB80", "UA4-80BB80", "UA3-BBB"]', game_labels='["1","2","3","4","5","6","7","8","9","10","11","12"]', game_colors='["#D8AFE5","#ADD6FD","#A2E4AE", "#FFF9CC", "#D5AEE7", "#EEB9BB"]',# "#8EA9F0", "#D7E8A7", "#9ECFDA", "#D8AFE5", "#ADD6FD", "#A2E4AE"]', deltas = '[1]*10', initial_points = '[100]*10', stage_durations='[[60,20,10,30,10,30,50,20,40,30],[60,20,10,40,50,20,30,20,40,10]]*5', #'[[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8]', max_submissions_per_game=15, shuffle_type = 'game', guess_decimals = 2, points_decimals = 2, only_integers = False, show_round_number = True, show_feedback_after_round = False, show_feedback_after_game = False, show_feedback_after_session = True, feedback_round_selection_type = 'random', show_info_of_others = False, ignore_dropout_conditions = False, control_timeout = 2100, welcome_time_out = 30, session_results_timeout = 180, crt_timeout = 450, num_rounds_per_game = 10, # This is only useful for the instructions app. control_threshold = 0, gap_between_groups = 0, show_networks = True, #use_browser_bots = False ), dict( name='network_guess_en', display_name='Anchored Guessing Games (English)', app_sequence=['demographics_en', 'network_guess_instructions_and_test_en', 'network_guess_en', 'crt_en'], num_demo_participants=12, dropbox_games_url = "", #game_sequence='["Net-3-1-B", "Net-3-2-B", "Net-3-3-B", "Net-3-1-80", "Net-3-2-80", "Net-3-3-80", "Net-3-1-10", "Net-3-2-10", "Net-3-3-10"]', game_sequence = '["UA1-BBB", "UA2-BBB", "UA1-BB80", "UA2-BB80", "UA4-BBBB", "UA1-B8080", "UA2-B8080", "UA4-BBB80", "UA4-80BB80", "UA3-BBB"]', game_labels='["1","2","3","4","5","6","7","8","9","10","11","12"]', game_colors='["#D8AFE5","#ADD6FD","#A2E4AE", "#FFF9CC", "#D5AEE7", "#EEB9BB"]',# "#8EA9F0", "#D7E8A7", "#9ECFDA", "#D8AFE5", "#ADD6FD", "#A2E4AE"]', deltas = '[1]*10', initial_points = '[100]*10', stage_durations='[[60,20,10,30,10,30,50,20,40,30],[60,20,10,40,50,20,30,20,40,10]]*5', #'[[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8],[8,8,8,8,8]', max_submissions_per_game=15, shuffle_type = 'game', guess_decimals = 2, points_decimals = 2, only_integers = False, show_round_number = True, show_feedback_after_round = False, show_feedback_after_game = False, show_feedback_after_session = True, feedback_round_selection_type = 'random', show_info_of_others = False, ignore_dropout_conditions = False, control_timeout = 2100, welcome_time_out = 30, session_results_timeout = 180, crt_timeout = 450, num_rounds_per_game = 10, # This is only useful for the instructions app. control_threshold = 0, gap_between_groups = 0, show_networks = True, #use_browser_bots = False ), # dict( # name='survey', app_sequence=['survey', 'payment_info'], num_demo_participants=1 # ), # dict( # name='public_goods_simple', # display_name="Simple Public Goods game", # app_sequence=['public_goods_simple', 'payment_info'], # num_demo_participants=3, # ), # dict( # name='trust', # display_name="Trust game", # app_sequence=['trust', 'payment_info'], # num_demo_participants=2, # ) ] # 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=1.00, participation_fee=0.00, doc="" ) PARTICIPANT_FIELDS = ['status', 'message', 'age', 'gender'] SESSION_FIELDS = ['games_list'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' 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)'), dict( name='ADE_40', display_name='ADE_40', participant_label_file='_rooms/ADE_40.txt', ), dict( name='epsilon', display_name='epsilon', participant_label_file='_rooms/epsilon.txt', ), dict( name='alpha', display_name='alpha', participant_label_file='_rooms/alpha.txt', ), dict( name='beta', display_name='beta', participant_label_file='_rooms/beta.txt', ), dict( name='gamma', display_name='gamma', participant_label_file='_rooms/gamma.txt', ), dict( name='lambda', display_name='lambda', participant_label_file='_rooms/lambda.txt', ), dict( name='kappa', display_name='kappa', participant_label_file='_rooms/kappa.txt', ), dict( name='phi', display_name='phi', participant_label_file='_rooms/phi.txt', ), dict( name='omega', display_name='omega', participant_label_file='_rooms/omega.txt', ), dict( name='mu', display_name='mu', participant_label_file='_rooms/mu.txt', ) ] 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 = """ Here are some oTree games. """ SECRET_KEY = '6633462224219' INSTALLED_APPS = ['otree']