diff --git a/cpp/src/pieces/pawn.cpp b/cpp/src/pieces/pawn.cpp index ce31718..55c3183 100644 --- a/cpp/src/pieces/pawn.cpp +++ b/cpp/src/pieces/pawn.cpp @@ -58,6 +58,11 @@ std::vector pawn_moves(const Board& b, const Coords xy) { new_xy.to_index(), .promoting_to = (int8_t) (my_colour | piece) }); + else + ret.push_back(Move{ + xy.to_index(), + new_xy.to_index(), + }); } return ret;