diff options
author | notoraptor <stevenbocco@gmail.com> | 2019-07-20 15:35:34 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-07-21 15:45:33 -0400 |
commit | 8b52f299150f834b676d4dde353e5f12cdbe4012 (patch) | |
tree | 7fe14e3536e384607f87bb6c28ccfe5010f6dc5e /diplomacy/daide | |
parent | 11af6bd80e1bc3f14dd66fc6508a9e7daf063a88 (diff) |
Fixed synchronization issues
- Added __enter__, __exit__, and .current_state() to game object
- set_orders throws an exception is the server phase is not the same as the client phase
- Returning only waiting dummy powers to bot
Diffstat (limited to 'diplomacy/daide')
-rw-r--r-- | diplomacy/daide/request_managers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/diplomacy/daide/request_managers.py b/diplomacy/daide/request_managers.py index 9e37407..4d29189 100644 --- a/diplomacy/daide/request_managers.py +++ b/diplomacy/daide/request_managers.py @@ -278,6 +278,7 @@ def on_submit_orders_request(server, request, connection_handler, game): return [responses.REJ(bytes(request))] request.token = token + request.phase = game.get_current_phase() power = game.get_power(power_name) initial_power_adjusts = power.adjust[:] |