Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Thoughts about board representations...

Author: Tony Werten

Date: 00:57:03 02/11/00

Go up one level in this thread


On February 10, 2000 at 20:25:51, Andrew Dados wrote:

>On February 10, 2000 at 17:34:52, Tom Kerrigan wrote:
>

> I define a structure:
>{
>piece: piecetype;
>color: colortype;
>index: byte (index into piece list);
>dummy: byte
>}
>
>Although byte data size 'is evil' whole thing fits nicely into 32bit size size.
>So 0x88 board is array[127] of dword data.
>  While you can easily combine 2 bytes into piececolor with some higher bit set
>for, say, white, it would complicate my code quite a lot. Note trick Chess
>Genius used (uses?): King and Rooks with castling rights have one of high bits
>set to mark that...

Might be easier to use the dummy-byte for that ?

Tony

>
>-Andrew-



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.