Skip to content

Commit a24da07

Browse files
glinscottmcostalba
authored andcommitted
Check for easy move just once
Here the rational seems to be that if after one try easy move detection fails then the easy move is not so easy :-) After 15563 games at 60+0.05 ELO: 3.04 +-5.5 (95%) LOS: 97.0% Total: 15563 W: 2664 L: 2528 D: 10371 No functional change.
1 parent 3698d9a commit a24da07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/search.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ namespace {
293293
Stack ss[MAX_PLY_PLUS_2];
294294
int depth, prevBestMoveChanges;
295295
Value bestValue, alpha, beta, delta;
296+
bool triedEasyMove = false;
296297

297298
memset(ss, 0, 4 * sizeof(Stack));
298299
depth = BestMoveChanges = 0;
@@ -439,10 +440,12 @@ namespace {
439440
// Stop search early if one move seems to be much better than others
440441
if ( depth >= 12
441442
&& !stop
443+
&& !triedEasyMove
442444
&& PVSize == 1
443445
&& ( RootMoves.size() == 1
444446
|| Time::now() - SearchTime > (TimeMgr.available_time() * 20) / 100))
445447
{
448+
triedEasyMove = true;
446449
Value rBeta = bestValue - 2 * PawnValueMg;
447450
(ss+1)->excludedMove = RootMoves[0].pv[0];
448451
(ss+1)->skipNullMove = true;

0 commit comments

Comments
 (0)