Skip to content

Commit 2a453b4

Browse files
FauziAkramPikaCat-OuO
authored andcommitted
Simplify fail high reduction formula
1 parent ca15562 commit 2a453b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,7 @@ Value Search::Worker::search(
11091109

11101110
// Increase reduction if next ply has a lot of fail high
11111111
if ((ss + 1)->cutoffCnt > 1)
1112-
r += 120 + 1024 * ((ss + 1)->cutoffCnt > 2) + 100 * ((ss + 1)->cutoffCnt > 3)
1113-
+ 1024 * allNode;
1112+
r += 256 + 1024 * ((ss + 1)->cutoffCnt > 2) + 1024 * allNode;
11141113

11151114
// For first picked move (ttMove) reduce reduction
11161115
if (move == ttData.move)

0 commit comments

Comments
 (0)