Skip to content

Commit

Permalink
Replace a pub_coordination_friendships scenario with a simpler one, w…
Browse files Browse the repository at this point in the history
…ith pub closures.

PiperOrigin-RevId: 693744954
Change-Id: Ia8eef36e764cd3e545438654b7d7ef114d0b53bc
  • Loading branch information
vezhnick authored and copybara-github committed Nov 6, 2024
1 parent d5d46f9 commit 9ec2457
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/modular/environment/pub_coordination.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def configure_scenes(
}

if closed_pub:
players_in_the_know = rng.choice(player_configs)
players_in_the_know = player_configs[0]
player_name = players_in_the_know.name
per_player_premise[player_name].append(
f'{player_name} have learnt that {closed_pub} is closed today. Going'
Expand Down
13 changes: 7 additions & 6 deletions examples/modular/scenario/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,17 @@ class ScenarioConfig:
focal_is_resident=False,
tags=('coordination', 'persuasion'),
),
pub_coordination_friendships_0=ScenarioConfig(

pub_coordination_closures_0=ScenarioConfig(
description=(
'resident population of focal agents in a pub coordination scenario'
' with friendships with a supporting agent who is stubborn and a'
' rational visitor agent'
'visitor population of focal agents in a pub coordination scenario'
' with a chance of a pub being closed and a'
' rational visitor agent and a stubborn on supporting agent.'
),
substrate_config=SUBSTRATE_CONFIGS['pub_coordination_friendships'],
substrate_config=SUBSTRATE_CONFIGS['pub_coordination_closures'],
background_agent_module='rational_agent',
time_and_place_module='pub_coordination_london',
focal_is_resident=True,
focal_is_resident=False,
tags=('coordination', 'persuasion', 'social networks'),
),
haggling_0=ScenarioConfig(
Expand Down

0 comments on commit 9ec2457

Please sign in to comment.