Skip to content

Commit

Permalink
Bench: 2796749
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonnold committed Nov 17, 2024
1 parent 525dab9 commit 3bda083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,13 +749,13 @@ int HasCycle(Board* board, int ply) {
if (between & OccBB(BOTH))
continue;

if (ply > i)
return 1;

int pc = board->squares[From(move)] != NO_PIECE ? board->squares[From(move)] : board->squares[To(move)];
if ((pc & 1) != board->stm)
continue;

if (ply > i)
return 1;

BoardHistory* prev2 = prev - 2;
for (int j = i + 4; j <= distance; j += 2) {
prev2 -= 2;
Expand Down

0 comments on commit 3bda083

Please sign in to comment.