feat: implement PEXT bitboards for sliding piece move gen - #112
Merged
Conversation
Also added placeholder notes for where we could introduce the PEXT instructions for move generation
Trying to abstract getting sliding piece attacks so we can easily switch between implementations depending on the platform the code is running on.
Created a new sliding piece attack struct that will handle only sliding piece attacks. This way we can abstract the backend method used to generate these attack tables and look them up. bench: 2517656
Fixed sliding piece move gen when using PEXT tables
Moved more tests around and fixed up some code.
bench: 2517656
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
+ Coverage 83.66% 83.89% +0.22%
==========================================
Files 49 51 +2
Lines 7182 7346 +164
==========================================
+ Hits 6009 6163 +154
- Misses 1173 1183 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
Author
|
ptsouchlos
pushed a commit
that referenced
this pull request
Nov 5, 2025
Elo | 0.11 +- 2.25 (95%) SPRT | 8.0+0.08s Threads=1 Hash=16MB LLR | 2.95 (-2.94, 2.94) [-5.00, 0.00] Games | N: 26428 W: 4392 L: 4384 D: 17652 Penta | [266, 2738, 7210, 2722, 278] https://pyronomy.pythonanywhere.com/test/3221/ bench: 2517656
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.
Implemented PEXT bitboards for sliding piece move gen as an alternative to the existing "magic" number based sliding piece move gen.
Fixes #109
bench: 2517656