docs: correct Chess Game in the beta README
Evidence: spikersoft-backend@master SpikerSoft.Contracts.SignalR/ChessHub.cs:234 PersistCompletedGame runs for resignation and agreed draw only. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7377375f98
commit
f7a7f32fdb
1 file changed
+2
-2
@@ -1623,7 +1623,7 @@ The platform includes a full-featured chess game with three play modes.
|
|||||||
### AI Difficulty Levels
|
### AI Difficulty Levels
|
||||||
|
|
||||||
- **Easy** — Random legal move selection
|
- **Easy** — Random legal move selection
|
||||||
- **Normal** — Minimax with alpha-beta pruning (depth 2), basic piece-value evaluation + center control bonus
|
- **Normal** — Minimax with alpha-beta pruning (depth 2) and the same piece-square evaluation as Hard
|
||||||
- **Hard** — Minimax (depth 3) with piece-square positional tables (pawn structure, knight outposts, king safety)
|
- **Hard** — Minimax (depth 3) with piece-square positional tables (pawn structure, knight outposts, king safety)
|
||||||
|
|
||||||
The AI runs entirely client-side — no backend compute required. After the human moves, the `ChessAIService` evaluates the position in a deferred `setTimeout` to keep the UI responsive.
|
The AI runs entirely client-side — no backend compute required. After the human moves, the `ChessAIService` evaluates the position in a deferred `setTimeout` to keep the UI responsive.
|
||||||
@@ -1644,7 +1644,7 @@ Online play uses a dedicated `ChessHub` SignalR hub (`/hubs/chess`) with Keycloa
|
|||||||
|
|
||||||
### Game Persistence
|
### Game Persistence
|
||||||
|
|
||||||
Completed online games (checkmate, resignation, draw, abandonment) are persisted to MongoDB as `ChessGame` documents, storing both players, all moves, result, and timestamps.
|
Resignation and an agreed draw are persisted to MongoDB as `ChessGame` documents, storing both players, all moves, result, and timestamps. Checkmate and abandonment finish the live game and are not written.
|
||||||
|
|
||||||
### Custom Piece Sets (Art Studio)
|
### Custom Piece Sets (Art Studio)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user