added small comment
This commit is contained in:
parent
8a3a92f80f
commit
f5292fa6d7
@ -29,6 +29,7 @@ std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -- 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user