Commit e44c3f4 1 parent 4298912 commit e44c3f4 Copy full SHA for e44c3f4
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,9 @@ namespace
139
139
return 0 ;
140
140
141
141
TEntry& entry = TT.retrieve (position);
142
+ bool tthit = entry.hash == position.key .data ();
142
143
143
- if (entry.depth >= depth && entry. hash == position. key . data () )
144
+ if (entry.depth >= depth && tthit )
144
145
{
145
146
if (entry.flag == TEFlag::exact ||
146
147
(entry.flag == TEFlag::lower && entry.score >= beta) ||
@@ -149,7 +150,6 @@ namespace
149
150
}
150
151
151
152
bool in_check = position.king_in_check ();
152
-
153
153
if (!pv_node && !in_check && depth > 4 && search.info .ply && do_null && position.should_do_null ())
154
154
{
155
155
position.apply_null_move (search.info .ply );
@@ -174,6 +174,9 @@ namespace
174
174
return 0 ;
175
175
176
176
MovePicker picker (position, search);
177
+
178
+ if (!tthit && depth > 4 )
179
+ depth--;
177
180
178
181
for (Move move; picker.next (move);)
179
182
{
Original file line number Diff line number Diff line change 26
26
#include " searchinit.h"
27
27
#include " polyglot.h"
28
28
29
- const char *version = " 6.2 " ;
29
+ const char *version = " 6.25 " ;
30
30
31
31
namespace
32
32
{
You can’t perform that action at this time.
0 commit comments