From f5292fa6d74b1b48a81dc57e3e78413f4f8e2ee0 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Sun, 2 Feb 2025 21:22:38 +0100 Subject: [PATCH] added small comment --- cpp/src/pieces/pawn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/src/pieces/pawn.cpp b/cpp/src/pieces/pawn.cpp index 90776bc..91b182f 100644 --- a/cpp/src/pieces/pawn.cpp +++ b/cpp/src/pieces/pawn.cpp @@ -29,6 +29,7 @@ std::vector pawn_moves(const Board& b, const Coords xy) { } } + // -- Promotion bool is_on_starting_rank = my_colour == Colour::White ? xy.y == 1 : xy.y == 6; int max_dy = is_on_starting_rank ? 3 : 2;