Bruno BELANYI
66e5109157
Statically assert zero-cost invariants
...
continuous-integration/drone/push Build is passing
Since some or all of those invariants will come in handy to ensure we
use as little memory as possible, to maximize the speed of the move
generation later on.
2022-07-18 11:05:41 +02:00
Bruno BELANYI
74d2a2cf6a
Add 'Bitboard::{LIGHT,DARK}_SQUARES
continuous-integration/drone/push Build is passing
2022-07-18 10:01:23 +02:00
Bruno BELANYI
057b383f8c
Add 'Bitboard::is_empty'
2022-07-18 00:33:24 +02:00
Bruno BELANYI
896f615bba
Add 'Bitboard::{ANTI_,}DIAGONAL'
2022-07-18 00:33:24 +02:00
Bruno BELANYI
61e7a4e8d1
Add 'Bitboard::count'
2022-07-18 00:33:24 +02:00
Bruno BELANYI
41903be143
Introduce 'Bitboard::ALL'
2022-07-16 14:41:07 +02:00
Bruno BELANYI
3c157efe84
Add bitboard iteration
...
Introduce 'BitboardIterator', use it to implement 'IntoIterator' for
'Bitboard'.
2022-07-16 14:41:07 +02:00
Bruno BELANYI
4bc597439e
Move 'board::bitboard' into folder module
...
I will be adding a 'BitboardIterator' type, and it makes more sense to
use a folder for this module at this point.
2022-07-16 14:41:07 +02:00