Files
chess-project/src/components
Stefan d694ce81ed fix: Display mate scores correctly in move exchange analysis
When Stockfish detects a forced mate, it sets the mate field and resets
the score to 0. The previous code was showing '0 cp' which was misleading.

Changes:
- Format evaluation strings to show 'Mate in X' when mate is detected
- Only show delta (centipawn change) when neither position has a mate
- Update eval instruction to specifically mention mate situations
- Add explanation of mate notation in the prompt

Example output now:
- Pre-Eval: -326 cp
- Post-Eval: Mate in 3
(instead of showing '0 cp' which was confusing)
2025-11-27 20:40:45 +01:00
..
2025-11-23 10:51:00 +01:00
2025-11-24 16:12:58 +01:00
2025-11-23 20:56:30 +01:00
2025-11-24 17:53:48 +01:00
2025-11-23 13:36:10 +01:00