Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Storing a chess move

Author: Tord Romstad

Date: 13:47:23 12/26/03

Go up one level in this thread


On December 26, 2003 at 09:39:57, ujecrh wrote:

>Another approach I have seen (not in chess engines but more in databases or book
>management code) is to store the index of the generated move. Of course you need
>to have a well specified (and stable) move generator.
>
>I do not see much advantages in this though.

The advantage is that it is very compact.  In most cases,  you would only need a
single
byte per move (assuming that there are less than 256 legal moves, which is true
for almost all chess positions).  In databases or book management code, this can
be quite valuable, because it helps to keep the files small.

Tord



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.