This is a temporary, read-only recovery of the chessprogrammingwiki while a longer-term plan is worked out. Editing is not possible right now, but will be again soon.
Chess Programming Wiki All pages Other namespaces

Mailbox

Home * Board Representation * Mailbox

A fantastical mailbox 1A fantastical mailbox 1


  1. A fantastical mailbox designed by Frederick C. Sauer around 1930 in the Sauer Buildings Historic District in Aspinwall, Pennsylvania. Image by Lee Paxton on May 16, 2010↩︎

Mailbox, (Offset board representation 1) a square-centric board representation where the encoding of every square resides in a separately addressable memory element, usually an element of an array for random access. The square number, or its file and rank, acts like an address to a post box, which might be empty or may contain one chess piece. As pointed out by Harm Geert Muller, not only the embedded 10x12 board, but various implementations are all mailbox, independently from elements in the array for padding that can act as a sentinel value 2.

Contents
  1. Implementations
  2. Pros & cons
    1. Pros
    2. Cons
  3. Speed
  4. See also
  5. Publications
  6. Forum Posts
  7. External Links
  8. References

Implementations

0x88

Pros & cons

Pros

Newcomers are suggested to implement their first chess engines using Mailbox thus they can get some basic knowledge and skills before starting more complicated chess projects.

Cons

In the view of developing chess engines:

Speed

For basic tasks such as generating, making/unmaking moves, a "pure" mailbox maybe slower than Bitboards. However, when combining it with other methods such as Piece-Lists and optimize the code it could be as fast as Bitboards3

See also

Publications

Forum Posts

References

Up one Level


  1. Chess board representations by Robert Hyatt↩︎

  2. mailbox & CPW by Harm Geert Muller, CCC, May 31, 2013↩︎

  3. The mailbox trials by Nguyen Pham, CCC, Mar 04, 2021↩︎

  4. Publication Archive from Chess Computer UK by Mike Watters↩︎

  5. hgm-mailbox-trials/mailbox7b.c at main · maksimKorzh/hgm-mailbox-trials · GitHub hosted by Maksim Korzh↩︎

  6. The mailbox trials by Harm Geert Muller, CCC, March 04, 2021↩︎

What links here

Contributors: GerdIsenberg, Phhnguyen.