feat: add UnsafeMoves() method to expose pseudo-legal moves that leav… - #115
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #115 +/- ##
==========================================
+ Coverage 70.29% 70.33% +0.04%
==========================================
Files 27 27
Lines 4181 4187 +6
==========================================
+ Hits 2939 2945 +6
Misses 1110 1110
Partials 132 132 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CorentinGS
force-pushed
the
feat/unsafe-moves
branch
3 times, most recently
from
June 1, 2026 20:40
56b1931 to
1a56e7a
Compare
…e own king in check Implements GitHub issue #110. - Add unsafeOnly parameter to standardMoves to filter by inCheck tag - Add engine.UnsafeMoves(), Position.UnsafeMoves(), and Game.UnsafeMoves() - Add comprehensive tests for pinned pieces, king moves into check, and starting position
CorentinGS
force-pushed
the
feat/unsafe-moves
branch
from
June 1, 2026 20:43
1a56e7a to
101cb40
Compare
CorentinGS
marked this pull request as ready for review
June 1, 2026 20:43
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.
…e own king in check
Implements GitHub issue #110.