From 6951b860da6cd6dee144a4bfbabf8423f4a3f1ef Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 14:05:32 +0100 Subject: [PATCH] forgot to push the normal moves for the pawn, fixed it now --- cpp/src/pieces/pawn.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;