aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/utils/constants.py
diff options
context:
space:
mode:
authorPhilip Paquette <pcpaquette@gmail.com>2019-09-11 12:58:45 -0400
committerPhilip Paquette <pcpaquette@gmail.com>2019-09-14 18:18:53 -0400
commitabb42dcd4886705d6ba8af27f68ef605218ac67c (patch)
tree9ae16f7a09fff539fa72e65198e284bca6ac3376 /diplomacy/utils/constants.py
parenta954a00d263750c279dbb2c0a9ae85707022bcd7 (diff)
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 <pcpaquette@gmail.com> Co-authored-by: notoraptor <stevenbocco@gmail.com>
Diffstat (limited to 'diplomacy/utils/constants.py')
-rw-r--r--diplomacy/utils/constants.py2
1 files changed, 2 insertions, 0 deletions
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. """