aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/server
AgeCommit message (Collapse)Author
2019-08-01Removed sending powers controlled notifications before processing phasenotoraptor
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-18Reset local orders for a power if we receive a power orders update.notoraptor
- Does not allow to join a power which is eliminated. - When clicking on "reset", reset local orders only for current selected power.
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-07-16[web] Add a button to delete game. (#39)notoraptor
- [server] Also delete game from RAM.
2019-07-07Updated the web interface to have 3 tabs - Results / Messages / CurrentPhilip Paquette
- Updated dependencies in package-lock.json - Set default homepage to "." so that built pages are relative to "index.html". - Add module "helmet" to handle page title. - Simplified page loading (replace static function builder with direct call to a method with component as argument). - Move function loadGameFromDisk in a separate file. - Use React context to access page object. - Add a new React component "Navigation" and simplify page rendering. - Add ability to choose power for any kind of loaded game. In phase history: - Show messages from all past and currently displayed phase. - Display messages from past phase with gray background. - Show messages per protagonist in tabs. - Show message phase in message header - Display message wide (header left, body right). - Display short names for powers in message tabs header. - Add warn function to page component. - Messages from previous phase are displayed with gray color text. - Game registration password input is displayed only if required - On games page: - sorted by descending timestamp created. - In table, game ID is displayed with human readable created date. - Prevent messages from displaying twice. - Re-add checkbox "show orders" to display arrow orders on past maps. - Handle HTML break-lines <br/> and remove all other HTML tags when displaying messages. - Use latest phase as current game phase when loading a game from disk.
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-14DAIDE - Implemented notifications and notification_managersSatya Ortiz-Gagne
- MAP = MapNameNotification - HLO = HelloNotification - SCO = SupplyCenterNotification - NOW = CurrentPositionNotification - MIS = MissingOrdersNotification - ORD = OrderResultNotification - TME = TimeToDeadlineNotification - CCD = PowerInCivilDisorderNotification - OUT = PowerIsEliminatedNotification - DRW = DrawNotification - FRM = MessageFromNotification - SLO = SoloNotification - SMR = SummaryNotification - OFF = TurnOffNotification
2019-04-18Updated pylint to v2.3.0Philip Paquette
2019-04-18game_id - Using a random stream of 96 bits encoded as base64Philip Paquette
2019-04-18Release v1.0.0 - Diplomacy Game Engine - AGPL v3+ LicensePhilip Paquette