Implement best move voting system for cluster

This implements the cluster version of https://github.com/official-stockfish/Stockfish/commit/d96c1c32a2fa109e7cc6cd07f6029cd13977121e
This commit is contained in:
noobpwnftw
2018-12-29 15:34:56 +01:00
committed by Stéphane Nicolet
parent 2559c20c6e
commit 66b2c6b9f1
3 changed files with 35 additions and 22 deletions
+3 -2
View File
@@ -288,10 +288,11 @@ void MainThread::search() {
}
}
Cluster::MoveInfo mi{bestThread->completedDepth,
Cluster::MoveInfo mi{bestThread->rootMoves[0].pv[0],
bestThread->completedDepth,
bestThread->rootMoves[0].score,
Cluster::rank()};
Cluster::reduce_moves(mi);
Cluster::pick_moves(mi);
previousScore = static_cast<Value>(mi.score);