Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Queen PseudoAttacks initialization #5545

Closed
wants to merge 1 commit into from

Conversation

Atomic2048
Copy link

@Atomic2048 Atomic2048 commented Aug 21, 2024

This change simplifies the initialization of the Queen's pseudo-attacks in the Bitboards::init() function. Instead of calculating the Queen's attacks separately, we derive them directly from the already computed Bishop and Rook attacks. This change doesn't impact functionality but makes the code cleaner and more efficient.

Copy link

clang-format 18 needs to be run on this PR.
If you do not have clang-format installed, the maintainer will run it when merging.
For the exact version please see https://packages.ubuntu.com/noble/clang-format-18.

(execution 10484819057 / attempt 1)

@Disservin
Copy link
Member

Disservin commented Aug 21, 2024

i dont see this as a necessary simplification, especially not in light of
#5405 (comment)

@vondele vondele closed this Aug 28, 2024
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.

3 participants