2269df2ed9
[board] Move piece! and position! macros to a new macros.rs module
2024-01-19 18:09:05 -08:00
177a4e32da
[board] Implement a u16 based Move
...
Replace building a Move with the Move struct itself with a MoveBuilder that
builds a Move and returns it.
Update the tests and move formatter.
2024-01-16 18:03:27 -08:00
953c2f1522
[board] Move position flags to a Flags struct in its own module
2024-01-13 11:15:09 -08:00
31e5771d30
[board] Implement all the bit twiddling to track whether castling is allowed for each player and side of the board
2024-01-10 11:01:19 -08:00
19c48b9816
[board] Implement a DiagramFormatter that writes a graphical diagram of a Position
...
Remove fmt::Display from Position and move display to a DiagramFormatter type that implements that trait and writes a position to a formatter.
2023-12-26 21:37:22 -07:00
758a3d95fc
[board] Reorganize bitboard and position modules and export some symbols from the crate
...
Move position.rs to the position module and create a mod.rs.
Do the same for bitboard.rs in the bitboard modules.
Export Color, Piece, Position, and Square and use crate::Thing directly instead of referring to the symbol in the nested modules.
2023-12-26 11:25:27 -07:00