Computer Chess Club Archives


Search

Terms

Messages

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

Author: Russell Reagan

Date: 10:15:16 02/06/04

Go up one level in this thread


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.



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.