We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be920c1 commit 66d3364Copy full SHA for 66d3364
search.cpp
@@ -33,6 +33,7 @@ namespace engine
33
}
34
Value doSearch(Board &board, int depth, Value alpha, Value beta, Session &session, int ply = 0)
35
{
36
+ if (ply >= MAX_PLY-1) return eval::eval(board);
37
Value alphaOrig=alpha;
38
std::fill(std::begin(session.pv[ply + 1]), std::end(session.pv[ply + 1]),
39
Move::none());
0 commit comments