Skip to content

Commit

Permalink
improve development phase scenarios
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693372057
Change-Id: Id3e348d14ab040cc853008715697fb64456ee737
  • Loading branch information
jzleibo authored and copybara-github committed Nov 5, 2024
1 parent 12f0e56 commit f7b3c3f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
10 changes: 5 additions & 5 deletions examples/modular/environment/modules/pre_state_villages.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
_DECISION_TIME = datetime.datetime(hour=20, year=1750, month=5, day=6)
_DEBRIEF_TIME = datetime.datetime(hour=20, year=1750, month=12, day=31)

_DEFENSE_THRESHOLD = 0.3
_STARVATION_THRESHOLD = 0.4
_DEFENSE_THRESHOLD = 0.25
_STARVATION_THRESHOLD = 0.1

_MIN_YEARS = 2
_MAX_YEARS = 3

_NUM_SUPPORTING_CHARACTERS_PER_VILLAGE = 2
_NUM_RITUAL_DESCRIPTIONS = 4
_NUM_PERCEPTIONS = 3
_NUM_RITUAL_DESCRIPTIONS = 3
_NUM_PERCEPTIONS = 2
_NUM_LEADER_SAYINGS = 3
_NUM_COLLECTIVE_UNCONSCIOUS_ELEMENTS = 1
_NUM_SHARED_EPIC_POEM_ELEMENTS = 6
_NUM_SHARED_EPIC_POEM_ELEMENTS = 2
_NUM_BARBARIAN_RUMORS = 5

VILLAGES = {'a': {}, 'b': {}}
Expand Down
42 changes: 23 additions & 19 deletions examples/modular/scenario/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,27 +166,12 @@ class ScenarioConfig:
'organization collective action scenario with a boss '
'who applies a fixed rule in which they only raise wages if most '
'of their workers have joined the strike. There is also a visitor '
'agent who is rational'
'agent who is a parochial universalization agent.'
),
substrate_config=SUBSTRATE_CONFIGS[
'labor_collective_action__fixed_rule_boss'
],
background_agent_module='rational_agent',
time_and_place_module='wild_west_railroad_construction_labor',
focal_is_resident=True,
tags=('discouraging antisocial behavior',),
),
labor_collective_action__rational_boss_0=ScenarioConfig(
description=(
'resident population of focal agents in a labor '
'organization collective action scenario with a boss '
'who is rational and a visitor agent '
'who is rational'
),
substrate_config=SUBSTRATE_CONFIGS[
'labor_collective_action__rational_boss'
],
background_agent_module='rational_agent',
background_agent_module='parochial_universalization_agent',
time_and_place_module='wild_west_railroad_construction_labor',
focal_is_resident=True,
tags=('discouraging antisocial behavior',),
Expand Down Expand Up @@ -296,6 +281,24 @@ class ScenarioConfig:
'persuasion',
),
),
reality_show_circa_2015_prisoners_dilemma_0=ScenarioConfig(
description=(
'resident population of focal agents are contestants on a '
'reality show circa 2015 along with strangers who are parochial '
'universalization agents. The minigame played on the show is '
'multiplayer prisoners dilemma.'
),
substrate_config=SUBSTRATE_CONFIGS['reality_show'],
background_agent_module='parochial_universalization_agent',
time_and_place_module=(
'circa_2015_british_reality_show__prisoners_dilemma_3_players'
),
focal_is_resident=True,
tags=(
'discouraging antisocial behavior',
'persuasion',
),
),
reality_show_circa_2003_stag_hunt_0=ScenarioConfig(
description=(
'visitor focal agents are contestants on a reality show circa '
Expand All @@ -317,10 +320,11 @@ class ScenarioConfig:
state_formation_0=ScenarioConfig(
description=(
'player must negotiate a treaty to enable division of labor in '
'common defense and agriculture and sell it to village stakeholders'
'common defense and agriculture and sell it to village '
'stakeholders. The negotiating partner is a rational agent.'
),
substrate_config=SUBSTRATE_CONFIGS['state_formation'],
background_agent_module='basic_agent_without_plan',
background_agent_module='rational_agent',
time_and_place_module='pre_state_villages',
focal_is_resident=True,
tags=(
Expand Down

0 comments on commit f7b3c3f

Please sign in to comment.