207 |
RootAlpha = MAX (score - WINDOW, -MATE); |
RootAlpha = MAX (score - WINDOW, -MATE); |
208 |
RootBeta = MIN (score + WINDOW, MATE); |
RootBeta = MIN (score + WINDOW, MATE); |
209 |
} |
} |
210 |
Idepth += DEPTH; |
Idepth += 1; /* increase iteration depth */ |
211 |
rootscore = -INFINITY-1; |
rootscore = -INFINITY-1; |
212 |
score = SearchRoot (Idepth, RootAlpha, RootBeta); |
score = SearchRoot (Idepth, RootAlpha, RootBeta); |
213 |
if (score >= RootBeta && score < MATE && !(flags & TIMEOUT)) |
if (score >= RootBeta && score < MATE && !(flags & TIMEOUT)) |
244 |
if (abs(score) + Idepth >= MATE + 1) |
if (abs(score) + Idepth >= MATE + 1) |
245 |
SET (flags, TIMEOUT); |
SET (flags, TIMEOUT); |
246 |
|
|
247 |
if (!(flags & PONDER) && Idepth == SearchDepth*DEPTH) |
if (!(flags & PONDER) && Idepth == SearchDepth) |
248 |
break; |
break; |
249 |
} |
} |
250 |
|
|