From abb42dcd4886705d6ba8af27f68ef605218ac67c Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Wed, 11 Sep 2019 12:58:45 -0400 Subject: Added ReadtheDocs documentation for the public API - Reformatted the docstring to be compatible - Added tests to make sure the documentation compiles properly - Added sphinx as a pip requirement Co-authored-by: Philip Paquette Co-authored-by: notoraptor --- diplomacy/utils/constants.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'diplomacy/utils/constants.py') diff --git a/diplomacy/utils/constants.py b/diplomacy/utils/constants.py index d929e33..47b1419 100644 --- a/diplomacy/utils/constants.py +++ b/diplomacy/utils/constants.py @@ -48,6 +48,8 @@ PRIVATE_BOT_PASSWORD = '#bot:password:28131821--mx1fh5g7hg5gg5g´[],s222222223dj # Time to wait to let a bot set orders for a dummy power. PRIVATE_BOT_TIMEOUT_SECONDS = 60 +# Default rules used to construct a Game object when no rules are provided. +DEFAULT_GAME_RULES = ('SOLITAIRE', 'NO_PRESS', 'IGNORE_ERRORS', 'POWER_CHOICE') class OrderSettings: """ Constants to define flags for attribute Power.order_is_set. """ -- cgit v1.2.3