made comment more accurate

This commit is contained in:
Karma Riuk 2025-02-02 23:14:13 +01:00
parent 4c8fdfa3b4
commit 24165bb5bb

View File

@ -42,7 +42,7 @@ std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
}); });
} }
// -- Promotion // -- Normal move + promotion
bool is_on_starting_rank = bool is_on_starting_rank =
my_colour == Colour::White ? xy.y == 1 : xy.y == 6; my_colour == Colour::White ? xy.y == 1 : xy.y == 6;
int max_dy = is_on_starting_rank ? 3 : 2; int max_dy = is_on_starting_rank ? 3 : 2;