Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bit boards in Shogi?

Author: Robert Hyatt

Date: 07:36:31 08/29/98

Go up one level in this thread


On August 29, 1998 at 00:30:44, David Eppstein wrote:

>On August 28, 1998 at 18:06:49, Robert Hyatt wrote:
>>On August 28, 1998 at 16:50:31, David Eppstein wrote:
>>>I think this power of two thing is a red herring. Even for an 8x8 board you
>>>have to mask so your pieces don't think they can wrap around from one side
>>>of the board to the other.
>>You really don't have to do this...  IE I have *no* such masks in Crafty.
>
>Oh no?
>What is this:
>
>(line 167 of movgen.c)
>    pcapturesr=And(Shiftr(And(WhitePawns,mask_right_edge),9),target);
>
>If it's not a mask, why do you call it mask_right_edge?

Sorry... I mis-spoke.  Note that I do that because I generate *all* pawn
moves in one step.  Generating them one pawn at a time would eliminate this.
Also notice that *none* of the piece generators do this because when generating
moves for a single piece, it is not necessary...




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.