chessfriend/moves
Eryn Wells 40e8e055f9 [board, moves, position] Move make_move routines to moves crate
Declare a MakeMove trait and export it from chessfriend_moves. Declare a
BoardProvider trait that both Board and Position implement.

Implement the MakeMove trait for all types that implement BoardProvider, and move
all the move making code to the moves crate.

This change makes it possible to make moves directly on a Board, rather than
requiring a Position. The indirection of declaring and implementing the trait
in the moves crate is required because chessfriend_board is a dependency of
chessfriend_moves. So, it would be a layering violation for Board to implement
make_move() directly. The board crate cannot link the moves crate because that
would introduce a circular dependency.
2025-05-31 19:04:21 -07:00
..
src [board, moves, position] Move make_move routines to moves crate 2025-05-31 19:04:21 -07:00
tests [position, moves] Implement some castling tests 2025-05-21 08:25:49 -07:00
Cargo.toml [moves] Clean up implementation of Move and export Kind enum 2025-05-19 14:19:05 -07:00