Skip to content

Add self-capture support (Closes issue #608)#919

Open
Belzedar94 wants to merge 14 commits intofairy-stockfish:masterfrom
Belzedar94:codex/fix-see-handling-for-self-capture
Open

Add self-capture support (Closes issue #608)#919
Belzedar94 wants to merge 14 commits intofairy-stockfish:masterfrom
Belzedar94:codex/fix-see-handling-for-self-capture

Conversation

@Belzedar94
Copy link
Copy Markdown
Contributor

Summary

  • add a selfCapture rule flag with parser support and expose a capture-anything preset
  • teach move generation, legality, bookkeeping and SEE to handle friendly captures
  • cover the rule with regression tests for knight and pawn self-captures

Testing

  • make -j2 ARCH=x86-64 build
  • python3 test.py

This has been carefully vibe-coded, but passes all the tests and work locally as far as I tested. It took a bit of back and forth.

Nevertheless, a careful review from an expert is definitely needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant