The move generators should only generate moves that can be made, so calling make_move() and unmake_move() should never give an error during legal move generation. Both of these calls assert that the result is not an Err(). Improve the error messaging so that they log the move, the current board position, and the error message. Highlight the squares relevant to the move (origin, target, and capture) when printing the board. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |