The make_move tests were trying to access the last capture piece directly from a slice of captures pieces (implementation prior to CapturesList). Implement CapturesList::last() to return an Option<&Piece> and use it in the tests. |
||
---|---|---|
.. | ||
src | ||
Cargo.lock | ||
Cargo.toml |