From 1606653546958fd6d621809ab3cfdc8c5e7b8494 Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Mon, 9 Sep 2019 17:57:09 -0400 Subject: Added ability to load a custom map by specifying the path to a '.map' file --- diplomacy/engine/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'diplomacy/engine/game.py') diff --git a/diplomacy/engine/game.py b/diplomacy/engine/game.py index 8da3480..5f0bb2e 100644 --- a/diplomacy/engine/game.py +++ b/diplomacy/engine/game.py @@ -79,8 +79,8 @@ class Game(Jsonable): e.g. {'PAR': 'FRANCE'} to indicate that PAR was lost by France (previous owner) - map: Contains a reference to the current map (Map instance) e.g. map = Map('standard') - - map_name: Contains a reference to the name of the map that was loaded - e.g. map_name = 'standard' + - map_name: Contains a reference to the name of the map that was loaded (or a full path to a custom map file) + e.g. map_name = 'standard' or map_name = '/some/path/to/file.map' - messages (only for non-observer games): history of messages exchanged inside this game. Sorted dict mapping message timestamps to message objects (instances of diplomacy.Message). Format: {message.time_sent => message} -- cgit v1.2.3