i simply changed...
Code: Select all
//--------valueToTrans------------------
//--------------------------------------
VAL_T valueToTT(VAL_T value,PLY_T cdp)
{
if (value < -mateScore) value -= cdp;
else if (value > +mateScore) value += cdp;
return(value);
}
//--------valueFromTrans----------------
//--------------------------------------
VAL_T valuefrTT(VAL_T value,PLY_T cdp)
{
if(value < -mateScore) value += cdp;
else if(value > +mateScore) value -= cdp;
return(value);
}
Code: Select all
#define WINNINGSCORE 300
#define LOSINGSCORE -300
//--------valueToTrans------------------
//--------------------------------------
VAL_T valueToTT(VAL_T value,PLY_T cdp)
{
if (value < LOSINGSCORE) value -= cdp;
else if (value > WINNINGSCORE) value += cdp;
return(value);
}
//--------valueFromTrans----------------
//--------------------------------------
VAL_T valuefrTT(VAL_T value,PLY_T cdp)
{
if(value < LOSINGSCORE) value += cdp;
else if(value > WINNINGSCORE) value -= cdp;
return(value);
}
search.Further winning+losing score can be a flexible value.
A similar idea would be sth. like
Code: Select all
if(value < -mateScore)...
else if(value > mateScore)...
else if(moveIsPromotion)...
Code: Select all
else if(scoreJump)...
the evaluation (that s what i have in mind), the transValue gets
the "progress-information" dependent on depth parameter.
What do you think ?
Michael