Commit Graph

8 Commits

Author SHA1 Message Date
Stefan 03608b9d70 fix: align chess game tests after rebase 2026-04-02 12:59:20 +02:00
Stefan c8a1325798 refactor: stabilize game, tutor, and analysis flows 2026-04-02 12:47:40 +02:00
Stefan 7f1c20f553 Fix TypeScript errors in test files
- Add missing 'src' property to OpeningMetadata test fixtures

- Add missing 'id' and 'description' properties to Personality test fixtures

- Add missing 'isPlayerWhite' property to EvaluationBar test cases

All tests now pass TypeScript validation. No changes to production code.
2026-01-04 11:15:58 +01:00
stefan-kp f9a245742b Handle resignation coach response and add analysis option 2025-12-03 08:45:31 +01:00
stefan-kp 918bbd2508 Add multi-game resume list with board previews 2025-11-27 09:26:02 +01:00
google-labs-jules[bot] 4d5ec5ecc3 fix(analysis): Ensure fresh evaluation for hints and analysis
This commit fixes a bug where the AI tutor and end-game analysis would use stale data from previous evaluations.

The `Tutor` component now receives the live `game` instance and has a new function, `evaluateCurrentPosition`, which is called on-demand when a user requests a hint or the best move. This ensures the LLM receives up-to-date information.

The end-game analysis was also corrected to use the proper evaluation data when constructing the move history, preventing incorrect analysis of mistakes and blunders.

The test suite was improved by restoring deleted tests, adding a new test to verify the fix, and making existing tests more robust.
2025-11-25 13:15:49 +00:00
Stefan 8a6d6bd780 game ready 2025-11-23 11:44:05 +01:00
Stefan 30f1e9e3a5 working app 2025-11-23 10:51:00 +01:00