1
0
Fork 0

split code

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-13 23:10:22 +01:00
parent b3a1e476b2
commit 01253b66de
6 changed files with 403 additions and 381 deletions

View file

@ -14,9 +14,9 @@
//! [`IllegalPositionReason`](setup::IllegalPositionReason) to know more). Legal moves are then
//! generated using the [`Position::legal_moves`](position::Position::legal_moves) method or
//! obtained from chess notation like [`UciMove`](uci::UciMove) or [`San`](san::San). Moves are
//! represented with the [`Move<'l>`](position::Move) type, which holds a reference to the origin
//! represented with the [`Move<'l>`](moves::Move) type, which holds a reference to the origin
//! position (hence the lifetime), this ensures the move is played on the correct position.
//! Finally, moves are played using the [`Move::make`](position::Move) method which returns a new
//! Finally, moves are played using the [`Move::make`](moves::Move::make) method which returns a new
//! [`Position`](position::Position), and on it goes.
//!
//! ## Example
@ -78,6 +78,7 @@ pub(crate) mod magics;
pub mod bitboard;
pub mod board;
pub mod moves;
pub mod position;
pub mod san;
pub mod setup;