This macro implements a tiny DSL for creating Pieces and PlacedPieces. "White King" → Piece::new(Color::White, Shape::King) "White King on E4" → PlacedPiece::new(Piece::new(Color::White, Shape::King), Square::E4) |
||
---|---|---|
.. | ||
src | ||
Cargo.lock | ||
Cargo.toml |
This macro implements a tiny DSL for creating Pieces and PlacedPieces. "White King" → Piece::new(Color::White, Shape::King) "White King on E4" → PlacedPiece::new(Piece::new(Color::White, Shape::King), Square::E4) |
||
---|---|---|
.. | ||
src | ||
Cargo.lock | ||
Cargo.toml |