Author: Volker Böhm
Date: 13:39:27 08/15/04
Go up one level in this thread
And don´t forget to try to seperate eval to bonus (adds only positive values)
and malus (adds only negative values).
Let P1...Pn be positive values (>= 0) and N1,..Nm be negative values (<= 0) then
if (eval_result < alpha)
{
eval_result += P1
...
eval_reault += Pn
if (eval_result < alpha) return eval_result;
eval_result += N1
if (eval_result < alpha) return eval_result;
...
eval_result +=Nm
}
else if (eval_result > beta)
{
// doing the same as above, but starting with N1 and comparing against > beta
}
this is another trick to make eval more lazy
Greetings Volker
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.