aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/utils
AgeCommit message (Collapse)Author
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