Gullydeckel

From Chessprogramming wiki
Revision as of 00:20, 11 January 2019 by GerdIsenberg (talk | contribs) (Created page with "'''Home * Engines * Gullydeckel''' [[FILE:Rome-SPQR.JPG|border|right|thumb| [https://en.wikipedia.org/wiki/Manhole_cover Manhole cover] in [https://en.wiki...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Home * Engines * Gullydeckel

Gullydeckel,
a Chess Engine Communication Protocol compliant open source engine under the GNU General Public License written in C by Martin Borriss. Supported platforms are Linux and Windows.

Features

0x88 Difference

The pre-initialized static int vector[256] in "attacks.c" [2] with ray directions encoded, which is indexed by 0x88 square difference plus offset, somehow reminds on a Gullydeckel, the colloquial German name for Manhole cover [3]:

/*
if we find that two squares are related according to matrix SqRel,
we use another matrix to look up the direction of the move required
('to walk the vector') if it is a sliding piece (R,B,Q)
*/

static int vector[256] = {
   0  ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,UR,0 ,0 ,0 ,0 ,0 ,0 ,
   UP ,0 ,0 ,0 ,0 ,0 ,0 ,UL,0 ,0 ,UR,0 ,0 ,0 ,0 ,0 ,
   UP ,0 ,0 ,0 ,0 ,0 ,UL,0 ,0 ,0 ,0 ,UR,0 ,0 ,0 ,0 ,
   UP ,0 ,0 ,0 ,0 ,UL,0 ,0 ,0 ,0 ,0 ,0 ,UR,0 ,0 ,0 ,
   UP ,0 ,0 ,0 ,UL,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,UR,0 ,0 ,
   UP ,0 ,0 ,UL,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,UR,0 ,
   UP ,0 ,UL,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,UR,
   UP ,UL,0 ,0 ,0 ,0 ,0 ,0 ,0 ,RI,RI,RI,RI,RI,RI,RI,
   0  ,LE,LE,LE,LE,LE,LE,LE,0 ,0 ,0 ,0 ,0 ,0 ,0 ,DR,
   DN ,DL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