Computer Chess Club Archives




Subject: Re: Knowledge

Author: martin fierz

Date: 01:10:05 09/27/04

Go up one level in this thread

On September 27, 2004 at 02:17:24, Uri Blass wrote:


>I do similiar thing to dividing the score by 2 when there is a single pawn in
>the board and when both side have equal material except the pawn I simply reduce
>the score of the better side.
>Here is the relevant code from movei
>score is the score from white point of view.
>if (numpawns[LIGHT]+numpawns[DARK]==1)
>			{
>				if (valpieces[LIGHT]==valpieces[DARK])
>				{
>					if (numpawns[LIGHT]==1)
>						score-=60;
>					else
>						score+=60;
>				}

i assume you add some kind of passer score to this? i.e. if the pawn is far
advanced you get more than +60?


This page took 0 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.