Not at all. You assume that all moves are generated, and then have to be tested for being a capture. But that is not the way how it works. You only generate the captures, by extracting bits from the attackers set of the victim. And you would only do that for victims that are not empty square.dangi12012 wrote: ↑Tue Sep 27, 2022 9:55 pm Thats what I mean - the capture generator is much faster with bitboards: Visibility & Enemy
With mailslot you would need an if for every possible target square.
Less registers and memory needed than 64 slots together with faster code is everything you mentioned above - but the point is actually for BB.
Bitboards vs. Mailboxes in the Era of NNUE...
Moderator: Ras
-
- Posts: 28353
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller