from os import environ # 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 ) SESSION_CONFIGS = [ dict( name='company', display_name='Acquiring a Company', num_demo_participants=2, app_sequence=['company'], ), dict( name='pennies', display_name='Asymmetric Matching Pennies', num_demo_participants=2, app_sequence=['pennies'], ), dict( name='battle', display_name='Battle of the Sexes', num_demo_participants=2, app_sequence=['battle'], ), dict( name='beautyContest', display_name='Beauty Contest', num_demo_participants=3, app_sequence=['beautyContest'], endowment=100, doc="""Edit the value of the 'endowment' variable to change the maximum guess that players may make.""", ), # dict( # name='coalition', # display_name='Coalition Formation Game', # num_demo_participants=3, # app_sequence=['coalition'], # ), dict( name='pool', display_name='Common Pool Resource Game', num_demo_participants=8, app_sequence=['pool'], endowment=20, ), dict( name='firstPrice_common', display_name='Common Value First Price Auction', num_demo_participants=2, app_sequence=['firstPrice_common'], players_per_group=2, doc="""The 'players_per_group' variable is configurable and has a default value of 4.""", ), dict( name='condorcet', display_name='Condorcet Jury Game', num_demo_participants=3, app_sequence=['condorcet'], ), dict( name='cooperative', display_name='Cooperative Bargaining Game', num_demo_participants=2, app_sequence=['cooperative'], ), dict( name='cournot', display_name='Cournot Oligopoly Game', num_demo_participants=2, app_sequence=['cournot'], ), dict( name='eleven', display_name='11-20 Game', num_demo_participants=2, app_sequence=['eleven'], ), dict( name='frontrunner', display_name='Frontrunner - Challenger', num_demo_participants=2, app_sequence=['frontrunner'], ), dict( name='hawk_dove', display_name='Hawk Dove Game', num_demo_participants=2, app_sequence=['hawk_dove'], ), dict( name='information_transmission', display_name='Information Transmission', num_demo_participants=2, app_sequence=['information_transmission'], ), dict( name='jobMarket', display_name='Job Market Signaling', num_demo_participants=2, app_sequence=['jobMarket'], ), dict( name='voter', display_name='Median Voter Theorem Game', num_demo_participants=2, app_sequence=['voter'], ), dict( name='minimum', display_name='Minimum Effort Game', num_demo_participants=5, app_sequence=['minimum'], players_per_group=5, doc="""The 'players_per_group' variable is configurable and has a default value of 5.""", ), dict( name='nct', display_name='Non-credible Threat Game', num_demo_participants=2, app_sequence=['nct'], ), dict( name='oneill', display_name="O'Neill Game", num_demo_participants=2, app_sequence=['oneill'], ), dict( name='participation', display_name='Participation Game', num_demo_participants=4, app_sequence=['participation'], ), dict( name='PGG', display_name='Partison Participation', num_demo_participants=3, app_sequence=['PGG'], ), dict( name='priceComp', display_name='Price Competition', num_demo_participants=2, app_sequence=['priceComp'], ), dict( name='prisoner', display_name="Prisoner's Dilemma", num_demo_participants=2, app_sequence=['prisoner'], ), dict( name='firstPrice', display_name='Private Value First Price Auction', num_demo_participants=2, app_sequence=['firstPrice'], players_per_group=2, doc="""The 'players_per_group' variable is configurable and has a default value of 4.""", ), dict( name='repeatedFlip', display_name='Repeated Game of Random Length', num_demo_participants=4, app_sequence=['repeatedFlip'], ), dict( name='normalForm', display_name='Repeated Normal Form Game', num_demo_participants=2, app_sequence=['normalForm'], number_of_rounds=10, display_all_history=True, doc="""The 'number_of_rounds' variable is configurable and has a default value of 10. The 'display_all_history' variable determines whether players see values from only the previous round of play or all rounds of play. Its default value is false, so players can review choices from only one round.""", ), dict( name='secondPrice', display_name='Second Price Auction', num_demo_participants=4, app_sequence=['secondPrice'], players_per_group=4, doc="""The 'players_per_group' variable is configurable and has a default value of 4.""", ), dict( name='staghunt', display_name='Stag Hunt', num_demo_participants=2, app_sequence=['staghunt'], ), dict( name='traveler', display_name="Traveler's Dilemma", num_demo_participants=2, app_sequence=['traveler'], ), dict( name='trust', display_name='Trust Game', num_demo_participants=2, app_sequence=['trust'], endowment=10, multiplier=3, doc="""The 'endowment' variable determines how much Player A is initially given. The 'multiplier' variable determines how much the amount sent by Player A is multiplied by. Default values are 10 and 3, respectively.""", ), dict( name='ultimatum', display_name='Ultimatum Game', num_demo_participants=2, app_sequence=['ultimatum'], ), dict( name='voluntary', display_name='Voluntary Contribution Game', num_demo_participants=5, app_sequence=['voluntary'], players_per_group=5, doc="""The 'players_per_group' variable is configurable and has a default value of 5.""", ), dict( name='punishment', display_name='Voluntary Contributions with Punishment', num_demo_participants=4, app_sequence=['punishment'], players_per_group=4, endowment=20, doc="""The 'players_per_group' variable is configurable and has a default value of 4. The 'endowment' variable determines how much money is given to each player in the first stage of the game.""", ), ] PARTICIPANT_FIELDS = ['is_dem', 'votes', 'expiry'] LANGUAGE_CODE = 'en' REAL_WORLD_CURRENCY_CODE = 'USD' REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 USE_POINTS = False ROOMS = [ { 'name': 'class', 'display_name': 'ECON280: Game Theory ', 'participant_label_file': '_rooms/gametheory_discussion.txt', }, ] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'gametheory2020' DEMO_PAGE_INTRO_HTML = 'Links for testing and demonstration.
To launch a real study, either create persistent links by setting up a room, or create a session through the sessions page.' SECRET_KEY = 'cv^w#tgt^!9@roz8uu(z%3lys64p^2=a*_%7xg(e#i^kxe%_#f' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']