forgot to push the normal moves for the pawn, fixed it now

This commit is contained in:
Karma Riuk 2025-02-03 14:05:32 +01:00
parent 805d9fa95c
commit 6951b860da

View File

@ -58,6 +58,11 @@ std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
new_xy.to_index(),
.promoting_to = (int8_t) (my_colour | piece)
});
else
ret.push_back(Move{
xy.to_index(),
new_xy.to_index(),
});
}
return ret;