Commit Graph

190 Commits

Author SHA1 Message Date
Nuget Ninja d389bbfd77 Auto csproj fix and update by bot. 2025-02-02 05:00:47 +00:00
Anduin Xue 688c459008 Update chess.js dependency to version 1.0.0 2025-01-21 13:06:44 +00:00
Nuget Ninja fa341c3fcb Auto csproj fix and update by bot. 2025-01-17 05:00:44 +00:00
Nuget Ninja 5015655398 Auto csproj fix and update by bot. 2025-01-16 05:00:47 +00:00
Nuget Ninja 4296be9929 Auto csproj fix and update by bot. 2025-01-03 05:01:07 +00:00
Anduin Xue e1ff2b84bc Update dependencies and optimize chess move computation
Upgraded various package dependencies in both test and main projects to their latest stable versions. Simplified the chess move computation logic by replacing custom depth handling with a streamlined `go depth` command for improved clarity and maintainability.
2025-01-01 15:19:47 +00:00
Anduin Xue ed70c58800 Bump runtime version from 8.0 to 9.0. 2025-01-01 14:01:42 +00:00
Nuget Ninja fd8e983830 Auto csproj fix and update by bot. 2024-12-12 05:01:08 +00:00
Nuget Ninja 7b740027fb Auto csproj fix and update by bot. 2024-12-09 05:01:13 +00:00
Nuget Ninja a9faa5227f Auto csproj fix and update by bot. 2024-12-07 05:01:27 +00:00
Nuget Ninja 6e26f87ba7 Auto csproj fix and update by bot. 2024-12-06 05:00:58 +00:00
Nuget Ninja 71ed23acec Auto csproj fix and update by bot. 2024-12-05 05:00:55 +00:00
Nuget Ninja 1f3a96d8c8 Auto csproj fix and update by bot. 2024-12-01 05:00:58 +00:00
Nuget Ninja d4f4743d64 Auto csproj fix and update by bot. 2024-11-20 05:01:23 +00:00
Nuget Ninja 5da1f879f2 Auto csproj fix and update by bot. 2024-11-13 10:06:39 +00:00
Nuget Ninja 4665be0640 Auto csproj fix and update by bot. 2024-11-13 08:32:41 +00:00
Anduin Xue 34b58a94a5 Update package versions and clean code imports
Updated various package references to their latest versions in the project and test files. Additionally, removed unnecessary `Aiursoft.AiurObserver.Extensions` imports from several controller files to clean up the code.
2024-11-13 05:10:49 +00:00
Anduin Xue c5cff05e9c Handle ConnectionAbortedException in controllers
Add specific handling for ConnectionAbortedException in ChatController, GamesController, and ChallengesController to explicitly manage cases where the client closes the connection, ensuring graceful exception handling and improved code clarity.
2024-11-12 16:08:10 +00:00
Anduin Xue 9689db40a5 Merge remote-tracking branch 'origin/master' 2024-11-12 16:06:24 +00:00
Anduin Xue fe3b04415c Add pusher.Connected check before closing pusher.
This ensures that the pusher is only closed when it is connected, preventing unnecessary operations and potential errors. The change has been applied across ChatController, GamesController, and ChallengesController.
2024-11-12 16:06:21 +00:00
Nuget Ninja 01dd076655 Auto csproj fix and update by bot. 2024-11-12 05:01:32 +00:00
Anduin Xue 5063390b6d Add in-memory caching for Player and Challenge models
Replaced manual in-memory data management with LruMemoryStore for Player and Challenge models. Updated relevant methods for challenge handling to utilize the new caching mechanism for better performance and maintainability. Added Aiursoft.InMemoryKvDb package to the project.
2024-11-11 13:20:52 +00:00
Nuget Ninja 5e21ada905 Auto csproj fix and update by bot. 2024-10-29 05:00:45 +00:00
Nuget Ninja 87b1d9b7b6 Auto csproj fix and update by bot. 2024-10-22 05:01:02 +00:00
Nuget Ninja c8e3d7ca6e Auto csproj fix and update by bot. 2024-10-10 05:01:00 +00:00
Nuget Ninja cc119912a9 Auto csproj fix and update by bot. 2024-10-07 05:00:47 +00:00
Anduin Xue 880c122db4 Add package-lock.json and simplify ChessEngine move selection
Added package-lock.json to track exact versions of dependencies. Simplified the logic in ChessEngine to always use the best move, removing randomness based on difficulty.
2024-10-07 01:59:52 +00:00
Nuget Ninja b61e1a836b Auto csproj fix and update by bot. 2024-10-05 05:00:59 +00:00
Nuget Ninja 0438f85b7f Auto csproj fix and update by bot. 2024-09-14 05:00:59 +00:00
Nuget Ninja f3090cd855 Auto csproj fix and update by bot. 2024-08-20 05:00:46 +00:00
Anduin Xue d8d0a44a79 Merge branch 'master' of ssh://gitlab.aiursoft.cn:2202/aiursoft/chessserver 2024-07-16 06:08:16 +00:00
Anduin Xue 378da184e0 Use Aiursoft's own npm registry. 2024-07-16 06:08:15 +00:00
Nuget Ninja 48128e9e08 Auto csproj fix and update by bot. 2024-07-08 05:01:03 +00:00
Anduin Xue 4d6033f73f Update difficulty handling in ChessEngine
The difficulty handling logic has been modified to better determine when to use the best move in the ChessEngine class. A new method called ShouldUseBestMove(int difficulty) has been added to provide a probabilistic approach towards choosing the best move based on the provided difficulty level.
2024-07-06 09:18:18 +00:00
xuef e780e7af7e Use new alpha. 2024-07-06 05:05:20 +00:00
dvorakchen 554e5918e8 refactor: play sound when moved 2024-07-06 12:36:48 +08:00
dvorakchen 3dee08b268 feat: play sound while piece moved 2024-07-05 22:24:15 +08:00
dvorakchen 9d6da46f4e feat: red highlight in check 2024-07-04 19:30:26 +08:00
dvorakchen 3c071f68cd feat: message tip 2024-07-04 15:15:11 +08:00
dvorak chen 99f1946fa1 Merge branch 'master' into 'master'
feat: add track

See merge request aiursoft/chessserver!61
2024-07-04 03:45:19 +00:00
Anduin Xue 71da95dfe1 Simplify AI difficulty calculation in ChessEngine
Removed the randomness from the AI difficulty calculation in ChessEngine. Now the depth purely relies on the given difficulty, providing a more consistent user experience.
2024-07-03 15:53:50 +00:00
Anduin Xue 01d974bfb5 Set maximum difficulty level in PveController
A change has been added to cap the difficulty level at 15 in the PveController. Allowing it to go higher could potentially cause issues. Now, when a difficulty greater than 15 is entered, it will automatically reset to 15.
2024-07-03 15:40:06 +00:00
Anduin Xue b7a1caa5a5 Update difficulty levels in ChessEngine
Added a new difficulty level and adjusted the ranking of the "Unbeatable" level. Changes also include a minor adjustment in the calculation of the depth variable for the GetBestMove function. Comments with the old difficulty levels have been removed from both the ChessEngine service and the _Layout view.
2024-07-03 15:39:15 +00:00
Anduin Xue 9bc235a984 Add difficulty levels to "Against AI" game mode
Multiple difficulty levels have been implemented for the "Against AI" mode. This involved changes in the user interface to allow players to select the difficulty and corresponding adjustments in the game logic. Also, Artificial Intelligence behavior has been adapted according to these difficulty levels.
2024-07-03 15:22:11 +00:00
Anduin Xue d35e0989f9 chore: Update LynxChess.Lynx package reference to LynxChess.Lynx.Internal 2024-07-03 14:48:00 +00:00
dvorakchen 7b6000e2d7 feat: track highlight 2024-07-03 21:40:09 +08:00
Anduin Xue e21ea7ee88 Improve move validation in ChessEngine
The chess move validation process has been updated in ChessEngine. Now the code uses the ChessBoard class to load from FEN and validate each move, before picking the best one. This change provides stronger error-checking on generated moves.
2024-07-02 13:33:26 +00:00
Anduin Xue ae4502a263 Add statusControl and roleControl to ChessBuilder
In ChessServer, the ChessBuilder function and instantiation now take parameters for the statusControl and roleControl elements. This change improves flexibility by allowing these controls to be passed in from the invoking context, rather than being statically defined within the ChessBuilder function.
2024-07-02 12:41:27 +00:00
Anduin Xue 0fffb18029 Merge branch 'refactor-dv' into 'master'
Refactor chessBoard.js

See merge request aiursoft/chessserver!64
2024-07-02 12:24:11 +00:00
Anduin Xue d37df1970a Improve game visibility and adjust search depth
Added several logging options to increase visibility of the game's internal operations. Also limited the chess engine's iterative deepening depth-first search (IDDFS) to a depth of 10 to improve performance efficiency. Additionally, changed the representation of '0' to 'O' due to notation issues in the GamesController.
2024-07-02 12:23:26 +00:00