Computer Chess Club Archives


Search

Terms

Messages

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

Author: Matthias Gemuh

Date: 11:26:52 02/06/04

Go up one level in this thread


On February 06, 2004 at 13:36:57, Kim Roper Jensen wrote:

>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



wraparound ? That too would land on a zero, so 120 squares are enough.




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.