Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Potential passed pawns

Author: James Swafford

Date: 04:55:34 01/30/02

Go up one level in this thread


On January 29, 2002 at 19:55:03, Albert Silver wrote:

>On January 29, 2002 at 12:46:50, Dan Andersson wrote:
>
>>Yep! But they are potential passed pawns. Then it depends on if you wish to add
>>such a factor.
>>
>>MvH Dan Andersson
>
>Is code on potential passed pawns common? Or is it too costly to be worth it?
>
>                                          Albert

It can be done pretty easily with bitmaps (bitboards).  Last night I
created two arrays of bitmaps - passed_white[64] and passed_black[64].
passed_white[E4] has 'bits on' for D5->D8, E5->E8, and F5->F8.
THen AND that with black_pawns to see if a white pawn on E4 is passed.

That worked much better than what I was originally doing, which was
looking only on the file I was on.

--
James



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.