Skip to content

Commit

Permalink
use first available piece as null move rather than A1
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRat committed Dec 31, 2023
1 parent b5a06b3 commit 3d1ad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ namespace {
//if "wall or move", generate walling action with null move
if (pos.variant()->wallOrMove)
{
moveList = make_move_and_gating<NORMAL>(pos, moveList, Us, SQ_A1, SQ_A1);
moveList = make_move_and_gating<NORMAL>(pos, moveList, Us, lsb(pos.pieces(Us)), lsb(pos.pieces(Us)));
}
}

Expand Down

0 comments on commit 3d1ad60

Please sign in to comment.