Skip to content

Commit 66be7b7

Browse files
authored
clear PV
1 parent 608c8ec commit 66be7b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

search.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ namespace engine
161161
chess::Move lastPV[MAX_PLY]{};
162162
for (int i = 1; i < timecontrol.depth; i++)
163163
{
164-
for (int i=0;i<64;i++)for (int j=0;j<64;j++)movepick::historyHeuristic[i][j]/=2;
164+
for (int i=0;i<64;i++)for (int j=0;j<64;j++){
165+
movepick::historyHeuristic[i][j]/=2;
166+
// since MAX_PLY=64
167+
session.pv[i][j]=Move::none();
168+
}
165169
session.nodes = 0;
166170
auto board_ = board;
167171
Value score_ = doSearch(board_, i, -VALUE_INFINITE, VALUE_INFINITE, session);

0 commit comments

Comments
 (0)