From 656d71dd5d26e2825b21304068c3cfebe76e3d28 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 1 Apr 2025 05:45:42 +0200 Subject: [PATCH] fixed nodestogo check --- source/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 4f4397f..a42e8a2 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -150,7 +150,7 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) { } } } else { - if (nodes >= nodesToGo) { + if (nodes > nodesToGo) { StopSearch(); return 0; } @@ -219,7 +219,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { } } } else if constexpr (mode == nodesMode) { - if (nodes >= nodesToGo) { + if (nodes > nodesToGo) { StopSearch(); return 0; }