Don't print fail-high or fail-lows in MultiPV mode
authorJoona Kiiski <joona.kiiski@gmail.com>
Sat, 17 Jan 2015 23:01:10 +0000 (23:01 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 18 Jan 2015 14:38:46 +0000 (14:38 +0000)
Supposed to give a better user experience when using MultiPV mode

No functional change

Resolves #217

src/search.cpp

index 564653ef6672aed2ce6cc0125de2f4bc5e4a40ef..cdbf9897bd8caf88f56bb68f0557a3cf0881696b 100644 (file)
@@ -365,7 +365,8 @@ namespace {
 
                 // When failing high/low give some update (without cluttering
                 // the UI) before a re-search.
-                if (  (bestValue <= alpha || bestValue >= beta)
+                if (   multiPV == 1
+                    && (bestValue <= alpha || bestValue >= beta)
                     && Time::now() - SearchTime > 3000)
                     sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl;