Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Easy for humans

Author: Andrew Williams

Date: 04:02:21 02/17/02

Go up one level in this thread


On February 17, 2002 at 06:38:57, Gian-Carlo Pascutto wrote:

>On February 17, 2002 at 06:16:12, Colin Frayn wrote:
>
>>Yep.  That helped ;)
>
>Mmm. I have code for this, but it isn't helping me any here.
>
>For one, it gets disabled when there are other pieces
>left, which is obviously not helping here.
>
>I'm wondering what rules other people have for this. It seems
>quite easy to get this wrong.
>
>--
>GCP

Mine penalizes the score like this:

oppBishopMultiplier = min(16, (OPPCOLBISH + diffPawns + diffPassers +
                               howManyRunners + HOWMANYWHITEPIECES +
                               HOWMANYBLACKPIECES));

score = ((score * oppBishopMultiplier) >> 4);

OPPCOLBISH is a constant.

diffPawns and diffPassers are absolute differences in the number of pawns and
passers. howManyRunners is how many passed pawns can't be stopped by the
opposing King. So the more of these things there are, the smaller the reduction
applied to the score. Obviously this isn't efficient or fast, but that's quite
typical of the rest of PM anyway :-)

Andrew



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.