Skip to content

Conversation

@osvitashev
Copy link

The idea was to make piece_bb[NO_PIECE] usable. It is not required for move generation, as it can always be derived form other bit boards. However, I have found not having this value readily accessible to be unintuitive.

It is initialized to all '1's in default Position constructor;
The value is updated in put_piece, remove_piece, move_piece and move_piece_quiet methods
Updated generate_legals and ran perft to validate correct behavior.

Hopefully i have not missed anything

It is initialized to all '1's in default Position constructor;
The value is updated in put_piece, remove_piece, move_piece and move_piece_quiet methods
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