[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:
parent
96b04379a4
commit
177a4e32da
5 changed files with 398 additions and 213 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue