Board::color_has_castling_right takes an Option<Color> which it unwraps. With that unwrapped Color, it can call… Board::color_has_castling_right_unwrapped, which performs the evaluation with a non-Option Color. Clean up some imports. |
||
|---|---|---|
| .. | ||
| 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 | ||
| zobrist.rs | ||