Stockfish question

Discussion of chess software programming and technical issues.

Moderator: Ras

Cardoso
Posts: 363
Joined: Thu Mar 16, 2006 7:39 pm
Location: Portugal
Full name: Alvaro Cardoso

Stockfish question

Post by Cardoso »

Hi,
reading the Stockfish source, in the search.cpp, I noticed the refinedValue comes either from the hashtable if possible or from the static eval.
When it comes from the hashtable, it is usually a bound either a lower bound (fail high) or an upper bound (fail low).
My question is, is this sound ? Since we don't have a real value to assess the current position but only a bound, is it ok to set refinedValue this way?

best regards,
Alvaro
lech
Posts: 1175
Joined: Sun Feb 14, 2010 10:02 pm

Re: Stockfish question

Post by lech »

Cardoso wrote:Hi,
reading the Stockfish source, in the search.cpp, I noticed the refinedValue comes either from the hashtable if possible or from the static eval.
When it comes from the hashtable, it is usually a bound either a lower bound (fail high) or an upper bound (fail low).
My question is, is this sound ? Since we don't have a real value to assess the current position but only a bound, is it ok to set refinedValue this way?

best regards,
Alvaro
Yes, because in 8th point you should be over beta. StaticEval can be below beta. The real values ​​are important in the PV line only.