Computer Chess Club Archives


Search

Terms

Messages

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

Author: Jeremiah Penery

Date: 04:28:04 12/17/99

Go up one level in this thread


On December 17, 1999 at 05:28:55, Owen Lyne wrote:

>On December 16, 1999 at 20:25:21, Jeremiah Penery wrote:
>>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. :)
>
>What about the case where the enemy pieces are locked on the same side of the
>board as your king though? This is not the example everyone always quotes
>of course, but is an example which could go wrong for yours perhaps? The losing
>side would play that last pawn blocking move to 'improve' the eval by the amount
>of material he's down, rather than take some of it! I guess one could
>construct a cute test position, though maybe search would save you anyway,
>by seeing the mates or king safety problems associated with the blocked
>position.
>
>Owen

I hadn't really thought of this type of problem.  However, if you can create
such a position (or positions :) I'd be happy to test. :)

Realistically, I don't think this case would ever happen, because if the enemy
pieces can get beyond both sides' pawns, they'd likely be taking some of them.
However, it will still be quite interesting to test.



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.