Commit graph

11 commits

Author SHA1 Message Date
c02f0170b9 [bitboard] Export the bit_scanner module
Clients can access TrailingBitScanner and LeadingBitScanner directly now.
2025-05-23 18:38:15 -07:00
7b0469d689 [bitboard] Replace separate methods for leading and trailing iteration
Add chessfriend_bitboard::IterationDirection
Make BitBoard::occupied_squares() take an IterationDirection and return an iterator
corresponding to the direction.
Do the same for ::first_occupied_square().
2025-05-02 14:28:31 -07:00
2480ef25e9 Remove BitBoardBuilder
It's unused except for the macro, and BitBoard itself can be declared mutable,
and implements Copy and Clone. So, I don't think having a separate Builder type
helps much.
2024-07-13 07:05:57 -07:00
3cec64d686 [bitboard] Make the bitboard crate more crate-like
Export symbols needed to use BitBoard and BitBoardBuilder.
Fix build errors.
2024-01-24 09:16:21 -08:00
b0b22048a8 [core] Rename (once again) chess_core → chessfriend_core 2024-01-24 08:48:19 -08:00
625bfb2446 [bitboard] Move everything in board::bitboard to the bitboard crate 2024-01-24 08:35:28 -08:00
32100b9553 [bitboard] Make an empty chess_bitboard crate
This crate lives in bitboard/
2024-01-24 08:34:23 -08:00
d776bd18e2 [board] Move bitboard lib to "board" 2023-12-20 11:45:55 -08:00
ab55a7994c [bitboard] Implement a Square type; fix all the build issues after adding a mod line to lib.rs 2023-12-20 11:45:12 -08:00
ebed5c05ed [bitboard] Add a BitBoard and a Position struct 2023-12-19 11:13:06 -08:00
8fd01e4f11 Add bitboard Rust library 2023-12-19 10:32:26 -08:00