Commit graph

15 commits

Author SHA1 Message Date
3239f288d7 [bitboard] Bitboards for kingside and queenside per color
Add two small BitBoard slices that represent kingside and queenside squares per
color.

Add doc comments to DARK_SQUARES and LIGHT_SQUARES.
Add getters on BitBoard for getting a boardside bitboard.
Clean up imports. Import the whole library module and refer to library things in
BitBoard by path.
2024-01-29 15:00:53 -08:00
cb48413ce7 [bitboard] Implement BitBoard::is_single_square()
Returns true if there's only one square set in the bitboard.
2024-01-29 14:46:16 -08:00
0f664f6c80 [bitboard] Implement BitBoard::as_bits; let rank and file take &u8 instead of usize 2024-01-29 14:46:16 -08:00
ea74b214da [position] Implement generating pawn moves by looking up bitboards in the Library
This enables a bunch of clean up! Remove the MoveGenerationParameters and MoveList
types from move_generator::pawn.

Implement BitBoard::pawn_pushes to look up pawn pushes by square and color.
2024-01-28 10:25:01 -08:00
66d03d3514 [board] Clean up a bunch of imports 2024-01-28 09:46:38 -08:00
1f873879bb [bitboard] Add pawn attacks bitboards to the Library 2024-01-28 09:08:57 -08: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
567cb8d787 [bitboard] Commit the lock file 2023-12-19 11:13:20 -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