From: Marco Costalba Date: Sun, 10 Jan 2010 16:19:49 +0000 (+0100) Subject: Store node evaluation in SearchStack X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=007285be2da7b77916d74f092e07de73bd1655ed Store node evaluation in SearchStack This info will be used by future patches. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 44bd9530..76db6d69 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -652,6 +652,7 @@ void SearchStack::init(int ply) { pv[ply] = pv[ply + 1] = MOVE_NONE; currentMove = threatMove = MOVE_NONE; reduction = Depth(0); + eval = VALUE_NONE; } void SearchStack::initKillers() { @@ -1391,6 +1392,7 @@ namespace { const int FutilityValueMargin = 112 * bitScanReverse32(int(depth) * int(depth) / 2); // Enhance score accuracy with TT value if possible + ss[ply].eval = staticValue; futilityValue = staticValue + FutilityValueMargin; staticValue = refine_eval(tte, staticValue, ply); diff --git a/src/search.h b/src/search.h index e87d0d2c..db9bef3c 100644 --- a/src/search.h +++ b/src/search.h @@ -27,6 +27,7 @@ #include "depth.h" #include "move.h" +#include "value.h" //// @@ -54,6 +55,7 @@ struct SearchStack { Move threatMove; Move killers[KILLER_MAX]; Depth reduction; + Value eval; void init(int ply); void initKillers();