King Psqt Tuning
[stockfish] / src / search.cpp
index 990c4123e6a91659ed0ab94baaca28a01ad8037d..28fbf25418cad775b3eb549eb8d0c49440576955 100644 (file)
@@ -250,26 +250,29 @@ void MainThread::search() {
       Value minScore = this->rootMoves[0].score;
 
       // Find out minimum score and reset votes for moves which can be voted
-      for (Thread* th: Threads){
+      for (Thread* th: Threads)
+      {
           minScore = std::min(minScore, th->rootMoves[0].score);
           votes[th->rootMoves[0].pv[0]] = 0;
       }
 
       // Vote according to score and depth
       for (Thread* th : Threads)
-          votes[th->rootMoves[0].pv[0]] +=  int(th->rootMoves[0].score - minScore)  + int(th->completedDepth);
+          votes[th->rootMoves[0].pv[0]] +=  int(th->rootMoves[0].score - minScore)  
+                                          + int(th->completedDepth);
 
       // Select best thread
       int bestVote = votes[this->rootMoves[0].pv[0]];
-      for (Thread* th : Threads){
-          if (votes[th->rootMoves[0].pv[0]] > bestVote){
-            bestVote = votes[th->rootMoves[0].pv[0]];
-            bestThread = th;
+      for (Thread* th : Threads)
+      {
+          if (votes[th->rootMoves[0].pv[0]] > bestVote)
+          {
+              bestVote = votes[th->rootMoves[0].pv[0]];
+              bestThread = th;
           }
       }
   }
 
-
   previousScore = bestThread->rootMoves[0].score;
 
   // Send again PV info if we have a new best thread