Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Stupid chess programs!!! And that goes for most of them!

Author: Jeremiah Penery

Date: 17:25:21 12/16/99

Go up one level in this thread


On December 16, 1999 at 10:45:54, William Bryant wrote:

>Jeremiah,
>
>I would be interested in what change you made to evaluate locked positions
>such as this.  Could you send me a description or the modifications by email or
>post them here.
>
>William
>wbryant@ix.netcom.com

This is the line of code I added:

if (PopCnt(WhitePawns&BlackPawns<<8) == 8) score-=Material;

This is in the EvaluatePawns() of Crafty, so just setting the score to 0 won't
work.  What it says is that if both sides have 8 pawns, and they are all blocked
by an opposing pawn, the material is removed from the score consideration (which
is why I don't get a score of 0.00, because positional score is still there).
It's pretty much a simple hack-fix, but it works well for these things. :)

Jeremiah



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.