[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.
This commit is contained in:
Eryn Wells 2024-01-16 18:03:27 -08:00
parent 96b04379a4
commit 177a4e32da
5 changed files with 398 additions and 213 deletions

View file

@ -4,6 +4,7 @@
mod bitboard;
mod display;
mod moves;
mod r#move;
#[macro_use]
pub mod piece;
#[macro_use]
@ -11,8 +12,8 @@ pub mod position;
mod sight;
mod square;
pub use moves::Move;
pub use position::Position;
pub use r#move::{Move, MoveBuilder};
pub use square::{File, Rank, Square};
pub(crate) use bitboard::BitBoard;