chessfriend/board/src
Eryn Wells 06bfc4ac57 [board] Implement a BitBoard MoveLibrary
This struct computes and stores piece moves per square to speed up computation
of move lists.

Initialize a `static mut` instance once via std::sync::Once, and return a static
reference to it. So far, it computes king and knight moves.

Make BitBoard::empty() and MoveLibrary::new() const functions, enabling static
construction of the MOVE_LIBRARY instance without needing to wrap it in an
Option.
2024-01-01 09:25:35 -08:00
..
bitboard [board] Implement a BitBoard MoveLibrary 2024-01-01 09:25:35 -08:00
moves [board] Implement KingMoveGenerator 2023-12-31 16:35:34 -08:00
position [board] Create const arrays for Shape that return &'static to its enum cases 2023-12-31 11:44:47 -08:00
lib.rs [board] A couple small changes to support the explorer crate 2023-12-28 15:11:57 -07:00
piece.rs [board] Create const arrays for Shape that return &'static to its enum cases 2023-12-31 11:44:47 -08:00
square.rs [board] Clean up interfaces of pieces and square structs 2023-12-29 09:17:33 -08:00
tests.rs [board] Implement KingMoveGenerator 2023-12-31 16:35:34 -08:00