smcracraft wrote:Say I run evaluate() first thing in my search() before doing much
else.
What is the best way to use the returned evaluation in the search()
routine to get the most of "every-node-eval" method?
I have read Rebel's entire page many times, but I am searching for
a shorter, paragraph-type comment.
Greetings,
Stuart
I use it mainly for pruning decisions.
I have function that say
if (eval>beta+margin(depth....)) return beta
margin is of course bigger when the depth is bigger but it is also depended on other factors.
My function is very complicated and I do not remember the exact function and I do not want to share my source.
I will share some details:
1)margin is smaller in the endgame
2)margin is bigger when the king is under threat.
3)margin is bigger if the opponent control all the squares near the king.
Uri
To be more correct
Note that this not exactly what I have in the code but something equivalent and I only posted based on memory.
The name of the function that I have is different but this is the idea.
The code that I have exactly in my source is the following 2 lines:
j1=eval_dat[ply].evalfull-calculatemargin(nominal(depth),beta);
if (j1>=0) return beta;
evalfull is the evaluation but calculatemargin use a lot of global variables so practically it is a function of other paramaters.
Uri