Author: Owen Lyne
Date: 02:28:55 12/17/99
Go up one level in this thread
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
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.