This makes Position immutable, even if declared mut. I think this will also make it easier to build positions going forward. Moving to a PieceBitBoards struct also required a lot of places that return owned BitBoards to return refs. This is basically fine except for adding a few more & here and there. This was a huge refactoring project. All the move generators and a bunch of BitBoard stuff needed to be updated. |
||
|---|---|---|
| .. | ||
| bitboard | ||
| move_generator | ||
| position | ||
| display.rs | ||
| lib.rs | ||
| macros.rs | ||
| move.rs | ||
| piece.rs | ||
| sight.rs | ||
| square.rs | ||