aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/engine
AgeCommit message (Collapse)Author
2019-08-14[Web] Integrated new maps on the web interfacenotoraptor
- Fixed bug with incorrect dislodged unit on pure map - [python] Make sure dummy powers are registered only for standard maps. - Hardcoded supply centers into SVG files. - Removed supply centers CSS classes. - Update positions for units and dislodged units on all maps. - Converted SVGs to React. - Removed "sym" classes and hardcode related styles into symbol definitions. - Reordered map list (standard at top, then other ones in alphabetical order) - Displayed + button for all maps and disable it for maps without variants. - Minified generated code when converting SVG files to React. - [web] Added ability to hide/display map abbreviations.
2019-07-21Fixed game advances even if no orders are received for dummiesPhilip Paquette
2019-07-21Fixed synchronization issuesnotoraptor
- 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
2019-07-19[python] Add a new method to retrieve powers available for bots.notoraptor
2019-07-18Open DAIDE port on game loading and display on webnotoraptor
- Open DAIDE port on game loading too, and [web] Display DAIDE port on game title. - [server] Also delete backup game file when deleting game. - [python] Add optional parameter `server` to ServerGame constructor to init server game with a server as soon as it is possible. Add field `daide_port` to Game for client games. When creating game, register it on server before generating client games, so that DAIDE ports are known on client game generation. Move DAIDE port opening into Server.add_new_game() and Server.get_game(), so that port is opened as soon as a new game is added or a game is loaded. Move DAIDE port closing for specific game into Server.delete_game(). Add DAIDE port to client game field daide_port if known. [web] Display DAIDE port if available in game title on game page. - [python] Display game ID in log when opening DAIDE port. - [server] Close DAIDE port as soon as game is done. - Update dependencies.
2019-07-16Web - User should auto-pass when no orders are possible. (#43)notoraptor
- Set default empty orders set for unorderable powers after a processing. - Set wait to False for unorderable powers. - Notify powers wait flags when sending game processed notifications. - Do not send empty orders set for unorderable powers in network test.
2019-06-14Using OrderResults to indicate the correct order results during adjudicationPhilip Paquette
- Modified DATC tests for consistency
2019-06-14Added 'retreats' as an additional attribute to game.get_state()Satya Ortiz-Gagne
- Contains a dictionary of valid retreat locations for each dislodged unit
2019-06-14Deprecated usage of NMR in game.pyPhilip Paquette
2019-06-07Map - Validating that coast without '/' are adjacent to nearby water locsPhilip Paquette
2019-06-07Power - Clearing dislodged units on clear_units()Philip Paquette
2019-06-07Map - Adjacency for invalid unit is always falsePhilip Paquette
2019-05-19Prevent duplicate units and centers with set_units and set_centersPhilip Paquette
2019-04-18Refactored get_all_possible_orders for 2.5x speed improvementPhilip Paquette
- Returning all locations at once - Removed 'loc' argument from method - Map has pre-computed attribute dest_with_coats
2019-04-18Updated pylint to v2.3.0Philip Paquette
2019-04-18Deprecated support for A WWW - XXX - YYY - ZZZ (explicit multi-step convoy)Philip Paquette
- Order expansion will convert the order to 'A WWW - ZZZ VIA' - set_orders without expansion will reject the order as an invalid move order
2019-04-18Add _unit_owner caching (#11)Setepenre
2019-04-18Upgraded pylint to v2.2.0Philip Paquette
2019-04-18Removed non-ascii characters in python filesPhilip Paquette
2019-04-18game_id - Using a random stream of 96 bits encoded as base64Philip Paquette
2019-04-18#809 - Seed for derivative maps should use same zobrist hash as parent mapPhilip Paquette
- Using the nb of locs and the sorted list of supply centers to compute the initial seed used to compute the zobrist hash - Child and parent maps should have compatible zobrist hash if the number of locs and the list of SCS is the same.
2019-04-18DATC 6.K.2 - Testing support of fleet in failed convoyPhilip Paquette
2019-04-18DATC 6.K.1 - Testing Civil Disorder (W1901A) with 1 order and 2 to removenotoraptor
2019-04-18Map - Modified norm() and compact()notoraptor
- Added 'loc' arg to get_order_status - Raising exception on set_orders for invalid power - Deprecated game.distribute_orders
2019-04-18Removed dependency on numpyPhilip Paquette
2019-04-18Release v1.0.0 - Diplomacy Game Engine - AGPL v3+ LicensePhilip Paquette