Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: My board squishy idea

Author: KarinsDad

Date: 15:08:56 06/04/99

Go up one level in this thread


On June 04, 1999 at 16:06:22, Dann Corbit wrote:

[snip]
>Urp...
>I get it.  You number the pawn positions 0 to 47 and add 8 to get the true
>location.
>Cough...
>Nevermind.

Actually, I did not do this since this would take up 6 bits per pawn. It is
smaller to have a bitboard for pawn/piece location. If you have a 64 bit
location bitboard, that takes up 8 bytes of the 20 byte goal. That leaves 12
bytes to handle 32 pieces plus state information or less than 3 bits per piece
(3 bits if no state information is needed). That is hard to achieve considering
that there are 12 different piece types to be placed into 3 bits each. The kings
are real gluttons at 6 bits each including state info. If I could get them down
to 3 bits each, I could fit into 20 bytes (maybe).

KarinsDad :)



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.