Implement making double push and promotion moves. Then write several tests to exercise these. Add convenient static functions to the Move struct to build moves quickly, without using the Builder. Add a is_promotable_rank() method to Rank to check that a rank can be used for promotion moves. The tests found and fixed a bug in pawn movement where the en passant square was being discarded when deciding whether an e.p. move can be made. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |