From 31b0656332a74ccc1279dee1233e8b94788fab5e Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Sun, 2 Feb 2025 23:16:53 +0100 Subject: [PATCH] fixed promotion missing colour --- cpp/src/pieces/pawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/pieces/pawn.cpp b/cpp/src/pieces/pawn.cpp index a206ade..f90aaff 100644 --- a/cpp/src/pieces/pawn.cpp +++ b/cpp/src/pieces/pawn.cpp @@ -56,7 +56,7 @@ std::vector pawn_moves(const Board& b, const Coords xy) { ret.push_back(Move{ xy.to_index(), new_xy.to_index(), - .promoting_to = piece + .promoting_to = my_colour | piece }); }