An attempt at making unit structs for Color and piece Shape
My idea was to implement traits on Piece that return sight lines, etc. This has turned out to be much more complex than I thought it would be. Ultimately, I don't think it's worth the effort.
This commit is contained in:
parent
953c2f1522
commit
0d8653894a
19 changed files with 499 additions and 320 deletions
|
@ -1,13 +1,15 @@
|
|||
// Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
mod bitboard;
|
||||
mod moves;
|
||||
//mod moves;
|
||||
#[macro_use]
|
||||
pub mod piece;
|
||||
#[macro_use]
|
||||
pub mod position;
|
||||
mod square;
|
||||
|
||||
pub use moves::Move;
|
||||
pub(crate) use bitboard::BitBoard;
|
||||
//pub use moves::Move;
|
||||
pub use piece::Color;
|
||||
pub use position::Position;
|
||||
pub use square::{File, Rank, Square};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue