Commit graph

7 commits

Author SHA1 Message Date
ffaad7b7d4 Rename 'board::direction{s,}' 2024-04-01 12:21:33 +01:00
5a9f0db1b9 Make use of 'Bitboard::is_empty' 2024-04-01 12:21:33 +01:00
eba64a98d4 Add 'Direction::slide_{square,board}' 2024-04-01 12:21:33 +01:00
21eecbdac9 Add 'Direction::move_square' 2024-04-01 12:21:33 +01:00
be3a8030a7 Add 'Direction::iter_{rook,bishop,royalty,knight}' 2024-04-01 12:21:33 +01:00
d03e251050 Add 'Direction::move_board'
Encapsulates the way to move a piece on a board, avoiding the need to
mask and shift by hand.
2024-04-01 12:21:33 +01:00
c95d7f078a Add 'board::Direction' enum 2024-04-01 12:21:33 +01:00