When place_piece() is called with PlacePieceStrategy::Replace, return the replaced piece in the Ok() variant of the Result as an Option<Piece>. Plumb this new return type through Board and Position. |
||
|---|---|---|
| .. | ||
| castle | ||
| piece_sets | ||
| board.rs | ||
| board_provider.rs | ||
| castle.rs | ||
| check.rs | ||
| display.rs | ||
| en_passant.rs | ||
| fen.rs | ||
| lib.rs | ||
| macros.rs | ||
| movement.rs | ||
| piece_sets.rs | ||
| sight.rs | ||