fixed promotion missing colour
This commit is contained in:
parent
24165bb5bb
commit
31b0656332
@ -56,7 +56,7 @@ std::vector<Move> 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
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user