Implement proper 'Mate in X' and checkmate detection#217
Merged
Conversation
…fish analysis - Display mate values as +M2/-M2 instead of +100/-100 to show whose mate it is - Add independent checkmate detection that works without Stockfish analysis - Fix checkmate positions showing "..." instead of "Checkmate" - Set Maia win rate to 0%/100% for mate and checkmate positions - Support both client-side Stockfish and backend API evaluation sources - Maintain backward compatibility with normal centipawn evaluations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Improve line breaks and indentation in MaiaModelSettings.tsx - Fix text wrapping in SoundSettings.tsx - Apply consistent code formatting per ESLint/Prettier rules 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves issue #211 by implementing proper mate display and checkmate detection for Stockfish analysis:
• Mate Sign Display: Shows
+M2/-M2instead of justM2to indicate whose mate it is• Checkmate Detection: Fixed positions showing "..." instead of "Checkmate"
• Independent Detection: Added checkmate detection that works without Stockfish analysis
• Maia Win Rate: Shows 0%/100% for mate and checkmate positions even when Stockfish data is missing
Test plan
+M2displays for white mate in 2,-M3for black mate in 3🤖 Generated with Claude Code