No description
Let BitBoard::rank and BitBoard::file take a Rank and File directly, instead of a u8 by reference. And then make the Rank/File::as_index const and return a value rather than a reference. All this allows you to convert between Rank, File, and BitBoard at compile tile (i.e. as a const method) rather than needing to do runtime stuff. |
||
---|---|---|
bitboard | ||
board | ||
core | ||
doc | ||
explorer | ||
moves | ||
position | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
ChessFriend.code-workspace | ||
Makefile |