From 23a6e6ba31426a58321bc9af3f5298d14257805c Mon Sep 17 00:00:00 2001 From: "Joel Z. Leibo" Date: Mon, 25 Nov 2024 03:24:39 -0800 Subject: [PATCH] Small sharpening changes to environments PiperOrigin-RevId: 699917784 Change-Id: I885a9e5f2ab3520b60c35c19ad15b2514bfcb150 --- .../modular/environment/modules/anthracite_coal_labor.py | 2 +- examples/modular/environment/modules/pre_state_villages.py | 2 +- examples/modular/environment/state_formation.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/modular/environment/modules/anthracite_coal_labor.py b/examples/modular/environment/modules/anthracite_coal_labor.py index db0b73a..f626345 100644 --- a/examples/modular/environment/modules/anthracite_coal_labor.py +++ b/examples/modular/environment/modules/anthracite_coal_labor.py @@ -682,7 +682,7 @@ class WorldConfig: organizer: str | None = None supporting_player_locations: Sequence[str] = () overheard_strike_talk: Sequence[str] = () - num_additional_days: int = 3 + num_additional_days: int = 4 num_additional_dinners: int = 1 def append_person( diff --git a/examples/modular/environment/modules/pre_state_villages.py b/examples/modular/environment/modules/pre_state_villages.py index 5d1b4c4..84786c0 100644 --- a/examples/modular/environment/modules/pre_state_villages.py +++ b/examples/modular/environment/modules/pre_state_villages.py @@ -23,7 +23,7 @@ '{village_a_name} and {village_b_name} are ' 'pre-state societies. They are small villages with a few hundred ' 'people each. They are located on the coast and supported by ' - 'both fishing and agriculture. The local farmers living outside ' + 'nearby farms. The local farmers living outside ' 'the villages share cultural and economic ties with the villagers.' ) diff --git a/examples/modular/environment/state_formation.py b/examples/modular/environment/state_formation.py index ea39e5a..798a1fa 100644 --- a/examples/modular/environment/state_formation.py +++ b/examples/modular/environment/state_formation.py @@ -455,7 +455,9 @@ def configure_scenes( 'intend to spend on each of the ' f'following activities: {activities_str}. Note that ' 'proportions of time should sum to 1. Sleep counts ' - f'as {config.free_time_activity}.'), + f'as {config.free_time_activity} and, ' + 'all else equal, ' + 'more leisure time is better.'), tag='announcement', ), override_game_master=no_conversation_game_master, @@ -1072,7 +1074,7 @@ def __init__( randomise_initiative=True, name='Negotiation scene', review_participants=False, - max_steps=1, + max_steps=4, memory=self._game_master_memory, additional_components=[agreement_component], verbose=True,