Computer Chess Club Archives


Search

Terms

Messages

Subject: These are not PSTs

Author: Dann Corbit

Date: 18:02:16 09/22/04


static const unsigned rook_reach[64] = {
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14,
    14, 14, 14, 14, 14, 14, 14, 14
};

static const unsigned bishop_reach[64] = {
    7, 7,  7,  7,  7,  7, 7, 7,
    7, 9,  9,  9,  9,  9, 9, 7,
    7, 9, 11, 11, 11, 11, 9, 7,
    7, 9, 11, 13, 13, 11, 9, 7,
    7, 9, 11, 13, 13, 11, 9, 7,
    7, 9, 11, 11, 11, 11, 9, 7,
    7, 9,  9,  9,  9,  9, 9, 7,
    7, 7,  7,  7,  7,  7, 7, 7
};

static const unsigned knight_reach[64] = {
    2, 3, 4, 4, 4, 4, 3, 2,
    3, 4, 6, 6, 6, 6, 4, 3,
    4, 6, 8, 8, 8, 8, 6, 4,
    4, 6, 8, 8, 8, 8, 6, 4,
    4, 6, 8, 8, 8, 8, 6, 4,
    4, 6, 8, 8, 8, 8, 6, 4,
    3, 4, 6, 6, 6, 6, 4, 3,
    2, 3, 4, 4, 4, 4, 3, 2
};

static const unsigned pawn_reach[64] = {
    23, 24, 25, 25, 25, 25, 24, 23,
    1,   2,  2,  2,  2,  2,  2,  1,
    1,   2,  2,  2,  2,  2,  2,  1,
    1,   2,  2,  2,  2,  2,  2,  1,
    1,   2,  2,  2,  2,  2,  2,  1,
    1,   2,  2,  2,  2,  2,  2,  1,
    1,   2,  2,  2,  2,  2,  2,  1,
    23, 24, 25, 25, 25, 25, 24, 23
};

static const unsigned king_reach[64] = {
    3, 5, 5, 5, 5, 5, 5, 3,
    5, 8, 8, 8, 8, 8, 8, 5,
    5, 8, 8, 8, 8, 8, 8, 5,
    5, 8, 8, 8, 8, 8, 8, 5,
    5, 8, 8, 8, 8, 8, 8, 5,
    5, 8, 8, 8, 8, 8, 8, 5,
    5, 8, 8, 8, 8, 8, 8, 5,
    3, 5, 5, 5, 5, 5, 5, 3
};

static const unsigned queen_reach[64] = {
    21, 21, 21, 21, 21, 21, 21, 21,
    21, 23, 23, 23, 23, 23, 23, 21,
    21, 23, 25, 25, 25, 25, 23, 21,
    21, 23, 25, 27, 27, 25, 23, 21,
    21, 23, 25, 27, 27, 25, 23, 21,
    21, 23, 25, 25, 25, 25, 23, 21,
    21, 23, 23, 23, 23, 23, 23, 21,
    21, 21, 21, 21, 21, 21, 21, 21
};



This page took 0.01 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.