Skip to content

Commit e44c3f4

Browse files
authored
IID (#64)
Bench: 8950364
1 parent 4298912 commit e44c3f4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Bit-Genie/src/search.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ namespace
139139
return 0;
140140

141141
TEntry& entry = TT.retrieve(position);
142+
bool tthit = entry.hash == position.key.data();
142143

143-
if (entry.depth >= depth && entry.hash == position.key.data())
144+
if (entry.depth >= depth && tthit)
144145
{
145146
if (entry.flag == TEFlag::exact ||
146147
(entry.flag == TEFlag::lower && entry.score >= beta) ||
@@ -149,7 +150,6 @@ namespace
149150
}
150151

151152
bool in_check = position.king_in_check();
152-
153153
if (!pv_node && !in_check && depth > 4 && search.info.ply && do_null && position.should_do_null())
154154
{
155155
position.apply_null_move(search.info.ply);
@@ -174,6 +174,9 @@ namespace
174174
return 0;
175175

176176
MovePicker picker(position, search);
177+
178+
if (!tthit && depth > 4)
179+
depth--;
177180

178181
for (Move move; picker.next(move);)
179182
{

Bit-Genie/src/uci.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "searchinit.h"
2727
#include "polyglot.h"
2828

29-
const char *version = "6.2";
29+
const char *version = "6.25";
3030

3131
namespace
3232
{

0 commit comments

Comments
 (0)