Use refinedValue in ProbCut condition

After 12613 games at 20"+0.1 on QUAD
Mod vs Orig 1870 - 1863 - 8880 ELO +0 (+- 3.3)

So no performance change but it is a code semplification
and also is more easy to understand.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-06-08 18:03:26 +01:00
parent 3dfff5bdae
commit e0215f3222
4 changed files with 6 additions and 12 deletions

View File

@@ -110,13 +110,13 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h)
go_next_phase();
}
MovePicker::MovePicker(const Position& p, Move ttm, const History& h, int parentCapture)
MovePicker::MovePicker(const Position& p, Move ttm, const History& h, int threshold)
: pos(p), H(h) {
assert (!pos.in_check());
// In ProbCut we consider only captures better than parent's move
captureThreshold = parentCapture;
captureThreshold = threshold;
phasePtr = ProbCutTable;
if ( ttm != MOVE_NONE