aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/utils
AgeCommit message (Collapse)Author
2019-09-14Added ReadtheDocs documentation for the public APIPhilip Paquette
- 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>
2019-09-10Added ability to load a custom map by specifying the path to a '.map' filePhilip Paquette
2019-08-28Use calls to Game parent methods in function to_saved_game_format().notoraptor
This will help using the function even with derived classes.
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-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-06-14Gracefully handling UnpicklingError with convoys cachePhilip Paquette
2019-06-14Using OrderResults to indicate the correct order results during adjudicationPhilip Paquette
- Modified DATC tests for consistency
2019-06-14DAIDE - Added connection_handler and serverSatya Ortiz-Gagne
- Ability to open and close port when DAIDE games are started and stopped - Can get the DAIDE port using a request
2019-06-07Errors are implemented using the StringableCode classSatya Ortiz-Gagne
2019-06-07Implemented a StringableCode class, and OrderResults as its child objectsSatya Ortiz-Gagne
- OK, NO_CONVOY, BOUNCE, VOID, CUT, DISLODGED, DISRUPTED, DISBAND, MAYBE
2019-06-07utils - Implemented an utility to split an order and a phase into their ↵Satya Ortiz-Gagne
components
2019-06-07DAIDE - Implemented all the DAIDE requestsSatya Ortiz-Gagne
- NME = NameRequest - OBS = ObserverRequest - IAM = IAmRequest - HLO = HelloRequest - MAP = MapRequest - MDF = MapDefinitionRequest - SCO = SupplyCentreOwnershipRequest - NOW = CurrentPositionRequest - HST = HistoryRequest - SUB = SubmitOrdersRequest - MIS = MissingOrdersRequest - GOF = GoFlagRequest - TME = TimeToDeadlineRequest - DRW = DrawRequest - SND = SendMessageRequest - NOT = NotRequest - YES = AcceptRequest - REJ = RejectRequest - PRN = ParenthesisErrorRequest - HUH = SyntaxErrorRequest - ADM = AdminMessageRequest
2019-06-07parsing - Added bytes as a primitive typeSatya Ortiz-Gagne
2019-06-07Map - Validating that coast without '/' are adjacent to nearby water locsPhilip 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-18Added pure map with svg renderingPhilip Paquette
2019-04-18Upgraded pylint to v2.2.0Philip Paquette
2019-04-18SortedDict - Added reversed_items() iteratornotoraptor
2019-04-18Added maps 'standard_age_of_empires_2' and 'standard_fleet_rome'notoraptor
2019-04-18[python] Update SMALL_MAPS in convoy_paths with newly created maps.notoraptor
[web] Update npm packaqges requirements. [web] Fix province controller parsing.
2019-04-18PriorityDict - Removed infinite recursion in Python 3.6.7notoraptor
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-18Release v1.0.0 - Diplomacy Game Engine - AGPL v3+ LicensePhilip Paquette