Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Curious about mailbox move generation--namely, what is it?

Author: Kim Roper Jensen

Date: 10:36:57 02/06/04

Go up one level in this thread


On February 06, 2004 at 13:21:26, William H Rogers wrote:

>On February 06, 2004 at 13:15:16, Russell Reagan wrote:
>
>>On February 06, 2004 at 12:19:47, Michael Yee wrote:
>>
>>>Hi,
>>>
>>>I searched the web, but had no luck finding a description of this technique.
>>>Would anyone mind giving a quick explanation?
>>
>>I've heard mailbox used for two slightly different approaches. One is the way
>>TSCP does its 'mailbox' thing, and the other is just using border squares around
>>the edge of the board, like this:
>>
>>int board[144] = {
>>    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>>    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0,
>>    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>>    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>>};
>>
>>Then if (board[i] == 0), you ran off the board. Maybe this is equivalent to what
>>TSCP does. I haven't looked that closely.
>Mail box show where a piece can move, ie. a bishop, rook, etc.
>What you posted about is just the basic chess board layout used for most games,
>however the extreme left hand and right hand lines of zeros are not needed.
>Bill

generating knight moves in the corner makes the zero's needed or else there
would be some wraparound ...

/kim



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.