Skip to content

Commit c0be550

Browse files
authored
3.5.6: implement iid - idea from Ethereal (#294)
bench: 1327210
1 parent 7f147bc commit c0be550

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/search.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,13 @@ EVAL Search::abSearch(EVAL alpha, EVAL beta, int depth, int ply, bool isNull, bo
337337
}
338338
}
339339

340+
//
341+
// IID
342+
//
343+
344+
if (depth >= 7 && (onPV || cutNode) && (!hashMove || hEntry.m_data.depth + 4 < depth))
345+
--depth;
346+
340347
auto legalMoves = 0;
341348
bestScore = -CHECKMATE_SCORE + ply;
342349
U8 type = HASH_ALPHA;

src/uci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <iostream>
3232
#include <sstream>
3333

34-
const std::string VERSION = "3.5.5";
34+
const std::string VERSION = "3.5.6";
3535
const std::string ARCHITECTURE = " 64 "
3636

3737
#if _BTYPE==0

0 commit comments

Comments
 (0)