aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-30Not displaying 'Notification received' for every notificationPhilip Paquette
2019-06-14Gracefully handling UnpicklingError with convoys cachePhilip Paquette
2019-06-14DAIDE - Added various tests to replay full games using the DAIDE interfaceSatya Ortiz-Gagne
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-14DAIDE - Implemented request_managersSatya Ortiz-Gagne
- Created DaideUser object - Implemented managers are: requests.NameRequest: on_name_request, requests.ObserverRequest: on_observer_request, requests.IAmRequest: on_i_am_request, requests.HelloRequest: on_hello_request, requests.MapRequest: on_map_request, requests.MapDefinitionRequest: on_map_definition_request, requests.SupplyCentreOwnershipRequest: on_supply_centre_ownership_request, requests.CurrentPositionRequest: on_current_position_request, requests.HistoryRequest: on_history_request, requests.SubmitOrdersRequest: on_submit_orders_request, requests.MissingOrdersRequest: on_missing_orders_request, requests.GoFlagRequest: on_go_flag_request, requests.TimeToDeadlineRequest: on_time_to_deadline_request, requests.DrawRequest: on_draw_request, requests.SendMessageRequest: on_send_message_request, requests.NotRequest: on_not_request, requests.AcceptRequest: on_accept_request, requests.RejectRequest: on_reject_request, requests.ParenthesisErrorRequest: on_parenthesis_error_request, requests.SyntaxErrorRequest: on_syntax_error_request, requests.AdminMessageRequest: on_admin_message_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-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-07DAIDE - Implemented all the DAIDE responsesSatya Ortiz-Gagne
- MAP = MapNameResponse - MDF = MapDefinitionResponse - HLO = HelloResponse - SCO = SupplyCenterResponse - NOW = CurrentPositionResponse - THX = ThanksResponse - MIS = MissingOrdersResponse - ORD = OrderResultResponse - TME = TimeToDeadlineResponse - YES = AcceptResponse - REJ = RejectResponse - NOT = NotResponse - CCD = PowerInCivilDisorderResponse - OUT = PowerIsEliminatedResponse - OFF = TurnOffResponse - PRN = ParenthesisErrorResponse - HUH = SyntaxErrorResponse
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-07DAIDE - Added utils str_to_bytes() and bytes_to_str()Satya Ortiz-Gagne
2019-06-07DAIDE - Added ability to parse clausesSatya Ortiz-Gagne
- break_next_group - add_parentheses / strip_parentheses - parse_bytes / parse_string - SingleToken clause - Power clause - String clause - Number clause - Province clause - Turn clause - UnitType clause - Unit clause - Order Type clause - Order clause
2019-06-07Map - Validating that coast without '/' are adjacent to nearby water locsPhilip Paquette
2019-06-07Fixed incorrect path in maps/tests/test_map_gen.pyPhilip Paquette
2019-06-07Power - Clearing dislodged units on clear_units()Philip Paquette
2019-06-07Map - Adjacency for invalid unit is always falsePhilip Paquette
2019-06-07DAIDE - Added message class that can be parsed from a streamPhilip Paquette
2019-06-07DAIDE - Added tokens with byte representationPhilip Paquette
2019-05-28[WebDip] - Providing a "convoyPath" for moves using a convoyPhilip Paquette
2019-05-21[web] Update ReactJS dependencies.notoraptor
2019-05-20WebDip API - Logging phase when submitting ordersPhilip Paquette
2019-05-19Prevent duplicate units and centers with set_units and set_centersPhilip Paquette
2019-05-19Integration with webdiplomacy.netPhilip Paquette
- API to send GET and POST requests - Orders to convert from and to webdip.net format
2019-04-18Increased version to v1.0.1Philip 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-18Added pure map with svg renderingPhilip 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-18Using Python 3.7 by default for Jenkins testsPhilip Paquette
2019-04-18Add _unit_owner caching (#11)Setepenre
2019-04-18Upgraded path to Miniconda.shPhilip Paquette
2019-04-18run_tests.sh targets the diplomacy folderPhilip Paquette
2019-04-18Upgraded pylint to v2.2.0Philip Paquette
2019-04-18Removed non-ascii characters in python filesPhilip Paquette
2019-04-18SortedDict - Added reversed_items() iteratornotoraptor
2019-04-18Added maps 'standard_age_of_empires_2' and 'standard_fleet_rome'notoraptor
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-18Fixed Jenkins not reporting tests score correctlyPhilip Paquette
2019-04-18Added ambiguous provinces to empire, modern and world mapsnotoraptor
2019-04-18DATC 6.K.2 - Testing support of fleet in failed convoyPhilip Paquette
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-18DATC 6.K.1 - Testing Civil Disorder (W1901A) with 1 order and 2 to removenotoraptor
2019-04-18PriorityDict - Removed infinite recursion in Python 3.6.7notoraptor