From f7a7f32fdbb59fa699a02a0f06ba809d5f2d4bde Mon Sep 17 00:00:00 2001 From: Joseph Spiker Date: Tue, 6 Oct 2026 04:12:29 -0400 Subject: [PATCH] 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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 209d65a..a2a0610 100644 --- a/README.md +++ b/README.md @@ -1623,7 +1623,7 @@ The platform includes a full-featured chess game with three play modes. ### AI Difficulty Levels - **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) 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 -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)