Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: quick bitboard question

Author: Dann Corbit

Date: 15:10:58 08/26/05

Go up one level in this thread


I included both bitboard and non bitboard mappings in here.

I don't really see any consensus in the versions that I looked at...

=====================================================================
Adriano:
char           *squareName[64] = {
    "H1", "G1", "F1", "E1", "D1", "C1", "B1", "A1",
    "H2", "G2", "F2", "E2", "D2", "C2", "B2", "A2",
    "H3", "G3", "F3", "E3", "D3", "C3", "B3", "A3",
    "H4", "G4", "F4", "E4", "D4", "C4", "B4", "A4",
    "H5", "G5", "F5", "E5", "D5", "C5", "B5", "A5",
    "H6", "G6", "F6", "E6", "D6", "C6", "B6", "A6",
    "H7", "G7", "F7", "E7", "D7", "C7", "B7", "A7",
    "H8", "G8", "F8", "E8", "D8", "C8", "B8", "A8",
};

=====================================================================
Alibaba:
/*

   b0   b1 b2 b3 b4 b5 b6 b7 b8   b9 ba bb bc bd be bf
   a0   a1 a2 a3 a4 a5 a6 a7 a8   a9 aa ab ac ad ae af
   +-------------------------+
   90 | A8 B8 C8 D8 E8 F8 G8 H8 | 99 9a 9b 9c 9d 9e 9f
   80 | A7 B7 C7 D7 E7 F7 G7 H7 | 89 8a 8b 8c 8d 8e 8f
   70 | A6 B6 C6 D6 E6 F6 G6 H6 | 79 7a 7b 7c 7d 7e 7f
   60 | A5 B5 C5 D5 E5 F5 G5 H5 | 69 6a 6b 6c 6d 6e 6f
   50 | A4 B4 C4 D4 E4 F4 G4 H4 | 59 5a 5b 5c 5d 5e 5f
   40 | A3 B3 C3 D3 E3 F3 G3 H3 | 49 4a 4b 4c 4d 4e 4f
   30 | A2 B2 C2 D2 E2 F2 G2 H2 | 39 3a 3b 3c 3d 3e 3f
   20 | A1 B1 C1 D1 E1 F1 G1 H1 | 29 2a 2b 2c 2d 2e 2f
   +-------------------------+
   10   11 12 13 14 15 16 17 18   19 1a 1b 1c 1d 1e 1f
   00   01 02 03 04 05 06 07 08   09 0a 0b 0c 0d 0e 0f
 */

#define BoardLength     16      /* Power of 2 because of dividing by Length */
#define NrSquares       (BoardLength*12)

/* Squares */
#define A1      (2*BoardLength+1)
#define B1      (A1+1)
#define C1      (B1+1)
#define D1      (C1+1)
#define E1      (D1+1)
#define F1      (E1+1)
#define G1      (F1+1)
#define H1      (G1+1)
#define A2      (A1+BoardLength)
#define B2      (A2+1)
#define C2      (B2+1)
#define D2      (C2+1)
#define E2      (D2+1)
#define F2      (E2+1)
#define G2      (F2+1)
#define H2      (G2+1)
#define A3      (A2+BoardLength)
#define B3      (A3+1)
#define C3      (B3+1)
#define D3      (C3+1)
#define E3      (D3+1)
#define F3      (E3+1)
#define G3      (F3+1)
#define H3      (G3+1)
#define A4      (A3+BoardLength)
#define B4      (A4+1)
#define C4      (B4+1)
#define D4      (C4+1)
#define E4      (D4+1)
#define F4      (E4+1)
#define G4      (F4+1)
#define H4      (G4+1)
#define A5      (A4+BoardLength)
#define B5      (A5+1)
#define C5      (B5+1)
#define D5      (C5+1)
#define E5      (D5+1)
#define F5      (E5+1)
#define G5      (F5+1)
#define H5      (G5+1)
#define A6      (A5+BoardLength)
#define B6      (A6+1)
#define C6      (B6+1)
#define D6      (C6+1)
#define E6      (D6+1)
#define F6      (E6+1)
#define G6      (F6+1)
#define H6      (G6+1)
#define A7      (A6+BoardLength)
#define B7      (A7+1)
#define C7      (B7+1)
#define D7      (C7+1)
#define E7      (D7+1)
#define F7      (E7+1)
#define G7      (F7+1)
#define H7      (G7+1)
#define A8      (A7+BoardLength)
#define B8      (A8+1)
#define C8      (B8+1)
#define D8      (C8+1)
#define E8      (D8+1)
#define F8      (E8+1)
#define G8      (F8+1)
#define H8      (G8+1)
=====================================================================
chess.cxx (     42):   cout << "feature myname=\"Doctor Chess v0.0\"\n";
// Values are written as
//  a8 b8 c8 d8 e8 f8 g8 h8
//  a7 b7 c7 d7 e7 f7 g7 h7
//  a6 b6 c6 d6 e6 f6 g6 h6
//  a5 b5 c5 d5 e5 f5 g5 h5
//  a4 b4 c4 d4 e4 f4 g4 h4
//  a3 b3 c3 d3 e3 f3 g3 h3
//  a2 b2 c2 d2 e2 f2 g2 h2
//  a1 b1 c1 d1 e1 f1 g1 h1
=====================================================================

Amy:
enum {
    a1 = 0, b1, c1, d1, e1, f1, g1, h1,
        a2, b2, c2, d2, e2, f2, g2, h2,
        a3, b3, c3, d3, e3, f3, g3, h3,
        a4, b4, c4, d4, e4, f4, g4, h4,
        a5, b5, c5, d5, e5, f5, g5, h5,
        a6, b6, c6, d6, e6, f6, g6, h6,
        a7, b7, c7, d7, e7, f7, g7, h7,
        a8, b8, c8, d8, e8, f8, g8, h8
};
=====================================================================
Arasan:
#define A8 0
#define B8 1
#define C8 2
#define D8 3
#define E8 4
#define F8 5
#define G8 6
#define H8 7
#define A7 8
#define B7 9
#define C7 10
#define D7 11
#define E7 12
#define F7 13
#define G7 14
#define H7 15
#define A6 16
#define B6 17
#define C6 18
#define D6 19
#define E6 20
#define F6 21
#define G6 22
#define H6 23
#define A5 24
#define B5 25
#define C5 26
#define D5 27
#define E5 28
#define F5 29
#define G5 30
#define H5 31
#define A4 32
#define B4 33
#define C4 34
#define D4 35
#define E4 36
#define F4 37
#define G4 38
#define H4 39
#define A3 40
#define B3 41
#define C3 42
#define D3 43
#define E3 44
#define F3 45
#define G3 46
#define H3 47
#define A2 48
#define B2 49
#define C2 50
#define D2 51
#define E2 52
#define F2 53
#define G2 54
#define H2 55
#define A1 56
#define B1 57
#define C1 58
#define D1 59
#define E1 60
#define F1 61
#define G1 62
#define H1 63
=====================================================================
ApilChess:
//Sqares
#define A8   0x00
#define B8   0x01
#define C8   0x02
#define D8   0x03
#define E8   0x04
#define F8   0x05
#define G8   0x06
#define H8   0x07

#define A7   0x10
#define B7   0x11
#define C7   0x12
#define D7   0x13
#define E7   0x14
#define F7   0x15
#define G7   0x16
#define H7   0x17

#define A6   0x20
#define B6   0x21
#define C6   0x22
#define D6   0x23
#define E6   0x24
#define F6   0x25
#define G6   0x26
#define H6   0x27

#define A5   0x30
#define B5   0x31
#define C5   0x32
#define D5   0x33
#define E5   0x34
#define F5   0x35
#define G5   0x36
#define H5   0x37

#define A4   0x40
#define B4   0x41
#define C4   0x42
#define D4   0x43
#define E4   0x44
#define F4   0x45
#define G4   0x46
#define H4   0x47

#define A3   0x50
#define B3   0x51
#define C3   0x52
#define D3   0x53
#define E3   0x54
#define F3   0x55
#define G3   0x56
#define H3   0x57

#define A2   0x60
#define B2   0x61
#define C2   0x62
#define D2   0x63
#define E2   0x64
#define F2   0x65
#define G2   0x66
#define H2   0x67

#define A1   0x70
#define B1   0x71
#define C1   0x72
#define D1   0x73
#define E1   0x74
#define F1   0x75
#define G1   0x76
#define H1   0x77

=====================================================================

Chesslib (The Crazy Bishop):
  enum
  {
   a1, b1, c1, d1, e1, f1, g1, h1,
   a2, b2, c2, d2, e2, f2, g2, h2,
   a3, b3, c3, d3, e3, f3, g3, h3,
   a4, b4, c4, d4, e4, f4, g4, h4,
   a5, b5, c5, d5, e5, f5, g5, h5,
   a6, b6, c6, d6, e6, f6, g6, h6,
   a7, b7, c7, d7, e7, f7, g7, h7,
   a8, b8, c8, d8, e8, f8, g8, h8
  };
=====================================================================

Averno:
char *Cuadros[64]=
{
	"a8","b8","c8","d8","e8","f8","g8","h8",
	"a7","b7","c7","d7","e7","f7","g7","h7",
	"a6","b6","c6","d6","e6","f6","g6","h6",
	"a5","b5","c5","d5","e5","f5","g5","h5",
	"a4","b4","c4","d4","e4","f4","g4","h4",
	"a3","b3","c3","d3","e3","f3","g3","h3",
	"a2","b2","c2","d2","e2","f2","g2","h2",
	"a1","b1","c1","d1","e1","f1","g1","h1"
};
=====================================================================

BabyChess:

/*
          A    B    C    D    E    F    G    H
      ||---------------------------------------||
    8 || 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 || 8
      ||---------------------------------------||
    7 || 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 || 7
      ||---------------------------------------||
    6 || 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 || 6
      ||---------------------------------------||
    5 || 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 || 5
      ||---------------------------------------||
    4 || 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 || 4
      ||---------------------------------------||
    3 || 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 || 3
      ||---------------------------------------||
    2 || 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 || 2
      ||---------------------------------------||
    1 || 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 || 1
      ||---------------------------------------||
          A    B    C    D    E    F    G    H
*/

typedef int Coord;
/* The file or rank number, zero based.  File A is 0, H is 7. */

static const
int sq_a1= 21, sq_b1= 22, sq_c1= 23, sq_d1= 24, sq_e1= 25, sq_f1= 26,
	sq_g1= 27, sq_h1= 28, sq_a8= 91, sq_b8= 92, sq_c8= 93, sq_d8= 94,
	sq_e8= 95, sq_f8= 96, sq_g8= 97, sq_h8= 98, sq_a= 0, sq_b= 1,
	sq_c= 2, sq_d= 3, sq_e= 4, sq_f= 5, sq_g= 6, sq_h= 7, sq_1= 0,
	sq_2= 1, sq_3= 2, sq_4= 3, sq_5= 4, sq_6= 5, sq_7= 6, sq_8= 7;
=====================================================================
BC:
const pchar SquareToString[64] =
            {
             "a1","b1","c1","d1","e1","f1","g1","h1",
             "a2","b2","c2","d2","e2","f2","g2","h2",
             "a3","b3","c3","d3","e3","f3","g3","h3",
             "a4","b4","c4","d4","e4","f4","g4","h4",
             "a5","b5","c5","d5","e5","f5","g5","h5",
             "a6","b6","c6","d6","e6","f6","g6","h6",
             "a7","b7","c7","d7","e7","f7","g7","h7",
             "a8","b8","c8","d8","e8","f8","g8","h8"
            };
=====================================================================
BCE:
enum {
    A1, A2, A3, A4, A5, A6, A7, A8,
    B1, B2, B3, B4, B5, B6, B7, B8,
    C1, C2, C3, C4, C5, C6, C7, C8,
    D1, D2, D3, D4, D5, D6, D7, D8,
    E1, E2, E3, E4, E5, E6, E7, E8,
    F1, F2, F3, F4, F5, F6, F7, F8,
    G1, G2, G3, G4, G5, G6, G7, G8,
    H1, H2, H3, H4, H5, H6, H7, H8
};
=====================================================================

Beowulf:
/* Enumerated board squares */
#define a8 (0)
#define b8 (1)
#define c8 (2)
#define d8 (3)
#define e8 (4)
#define f8 (5)
#define g8 (6)
#define h8 (7)
#define a7 (8)
#define b7 (9)
#define c7 (10)
#define d7 (11)
#define e7 (12)
#define f7 (13)
#define g7 (14)
#define h7 (15)
#define a6 (16)
#define b6 (17)
#define c6 (18)
#define d6 (19)
#define e6 (20)
#define f6 (21)
#define g6 (22)
#define h6 (23)
#define a5 (24)
#define b5 (25)
#define c5 (26)
#define d5 (27)
#define e5 (28)
#define f5 (29)
#define g5 (30)
#define h5 (31)
#define a4 (32)
#define b4 (33)
#define c4 (34)
#define d4 (35)
#define e4 (36)
#define f4 (37)
#define g4 (38)
#define h4 (39)
#define a3 (40)
#define b3 (41)
#define c3 (42)
#define d3 (43)
#define e3 (44)
#define f3 (45)
#define g3 (46)
#define h3 (47)
#define a2 (48)
#define b2 (49)
#define c2 (50)
#define d2 (51)
#define e2 (52)
#define f2 (53)
#define g2 (54)
#define h2 (55)
#define a1 (56)
#define b1 (57)
#define c1 (58)
#define d1 (59)
#define e1 (60)
#define f1 (61)
#define g1 (62)
#define h1 (63)
=====================================================================
Bigbook:
// bits 8,7 == special move.  bits 0-6 === placement on board. 0=a1 63=h8.
=====================================================================
Bitboard-TSCP:
/* useful squares */
#define A1            56
#define B1            57
#define C1            58
#define D1            59
#define E1            60
#define F1            61
#define G1            62
#define H1            63
#define A8            0
#define B8            1
#define C8            2
#define D8            3
#define E8            4
#define F8            5
#define G8            6
#define H8            7

=====================================================================
Braincrack:
#define a1 0
#define b1 1
#define c1 2
#define d1 3
#define e1 4
#define f1 5
#define g1 6
#define h1 7
#define a2 8
#define b2 9
#define c2 10
#define d2 11
#define e2 12
#define f2 13
#define g2 14
#define h2 15
#define a3 16
#define b3 17
#define c3 18
#define d3 19
#define e3 20
#define f3 21
#define g3 22
#define h3 23
#define a4 24
#define b4 25
#define c4 26
#define d4 27
#define e4 28
#define f4 29
#define g4 30
#define h4 31
#define a5 32
#define b5 33
#define c5 34
#define d5 35
#define e5 36
#define f5 37
#define g5 38
#define h5 39
#define a6 40
#define b6 41
#define c6 42
#define d6 43
#define e6 44
#define f6 45
#define g6 46
#define h6 47
#define a7 48
#define b7 49
#define c7 50
#define d7 51
#define e7 52
#define f7 53
#define g7 54
#define h7 55
#define a8 56
#define b8 57
#define c8 58
#define d8 59
#define e8 60
#define f8 61
#define g8 62
#define h8 63
=====================================================================
Cheops:
enum square_type {
    a1, b1, c1, d1, e1, f1, g1, h1,
    a2, b2, c2, d2, e2, f2, g2, h2,
    a3, b3, c3, d3, e3, f3, g3, h3,
    a4, b4, c4, d4, e4, f4, g4, h4,
    a5, b5, c5, d5, e5, f5, g5, h5,
    a6, b6, c6, d6, e6, f6, g6, h6,
    a7, b7, c7, d7, e7, f7, g7, h7,
    a8, b8, c8, d8, e8, f8, g8, h8,
    Rank=8, File=1, No_square=-100
};
=====================================================================
Chezz:
enum Square {
    a1, b1, c1, d1, e1, f1, g1, h1,
    a2, b2, c2, d2, e2, f2, g2, h2,
    a3, b3, c3, d3, e3, f3, g3, h3,
    a4, b4, c4, d4, e4, f4, g4, h4,
    a5, b5, c5, d5, e5, f5, g5, h5,
    a6, b6, c6, d6, e6, f6, g6, h6,
    a7, b7, c7, d7, e7, f7, g7, h7,
    a8, b8, c8, d8, e8, f8, g8, h8,
    Squarebegin = a1, Squareend = h8 + 1
};
=====================================================================
Diablo:
enum Square {
	A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1,
	A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, L2, M2, N2, O2, P2,
	A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, L3, M3, N3, O3, P3,
	A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, L4, M4, N4, O4, P4,
	A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, L5, M5, N5, O5, P5,
	A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, L6, M6, N6, O6, P6,
	A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, L7, M7, N7, O7, P7,
	A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, L8, M8, N8, O8, P8};

=====================================================================

Doktoren:
#define a1 (1-1)
#define b1 (2-1)
#define c1 (3-1)
#define d1 (4-1)
#define e1 (5-1)
#define f1 (6-1)
#define g1 (7-1)
#define h1 (8-1)
#define a2 (9-1)
#define b2 (10-1)
#define c2 (11-1)
#define d2 (12-1)
#define e2 (13-1)
#define f2 (14-1)
#define g2 (15-1)
#define h2 (16-1)
#define a3 (17-1)
#define b3 (18-1)
#define c3 (19-1)
#define d3 (20-1)
#define e3 (21-1)
#define f3 (22-1)
#define g3 (23-1)
#define h3 (24-1)
#define a4 (25-1)
#define b4 (26-1)
#define c4 (27-1)
#define d4 (28-1)
#define e4 (29-1)
#define f4 (30-1)
#define g4 (31-1)
#define h4 (32-1)
#define a5 (33-1)
#define b5 (34-1)
#define c5 (35-1)
#define d5 (36-1)
#define e5 (37-1)
#define f5 (38-1)
#define g5 (39-1)
#define h5 (40-1)
#define a6 (41-1)
#define b6 (42-1)
#define c6 (43-1)
#define d6 (44-1)
#define e6 (45-1)
#define f6 (46-1)
#define g6 (47-1)
#define h6 (48-1)
#define a7 (49-1)
#define b7 (50-1)
#define c7 (51-1)
#define d7 (52-1)
#define e7 (53-1)
#define f7 (54-1)
#define g7 (55-1)
#define h7 (56-1)
#define a8 (57-1)
#define b8 (58-1)
#define c8 (59-1)
#define d8 (60-1)
#define e8 (61-1)
#define f8 (62-1)
#define g8 (63-1)
#define h8 (64-1)
=====================================================================
drausinus:
typedef enum { H1,G1,F1,E1,D1,C1,B1,A1,
	       H2,G2,F2,E2,D2,C2,B2,A2,
	       H3,G3,F3,E3,D3,C3,B3,A3,
	       H4,G4,F4,E4,D4,C4,B4,A4,
	       H5,G5,F5,E5,D5,C5,B5,A5,
	       H6,G6,F6,E6,D6,C6,B6,A6,
	       H7,G7,F7,E7,D7,C7,B7,A7,
	       H8,G8,F8,E8,D8,C8,B8,A8,
	       BAD_SQUARE} squares;
=====================================================================
ElTurco:
#define A8 0
#define B8 1
#define C8 2
#define D8 3
#define E8 4
#define F8 5
#define G8 6
#define H8 7
#define A7 8
#define B7 9
#define C7 10
#define D7 11
#define E7 12
#define F7 13
#define G7 14
#define H7 15
#define A6 16
#define B6 17
#define C6 18
#define D6 19
#define E6 20
#define F6 21
#define G6 22
#define H6 23
#define A5 24
#define B5 25
#define C5 26
#define D5 27
#define E5 28
#define F5 29
#define G5 30
#define H5 31
#define A4 32
#define B4 33
#define C4 34
#define D4 35
#define E4 36
#define F4 37
#define G4 38
#define H4 39
#define A3 40
#define B3 41
#define C3 42
#define D3 43
#define E3 44
#define F3 45
#define G3 46
#define H3 47
#define A2 48
#define B2 49
#define C2 50
#define D2 51
#define E2 52
#define F2 53
#define G2 54
#define H2 55
#define A1 56
#define B1 57
#define C1 58
#define D1 59
#define E1 60
#define F1 61
#define G1 62
#define H1 63

=====================================================================

Eschelon:
enum
	{
	A1 = 0x00, B1, C1, D1, E1, F1, G1, H1,
	A2 = 0x10, B2, C2, D2, E2, F2, G2, H2,
	A3 = 0x20, B3, C3, D3, E3, F3, G3, H3,
	A4 = 0x30, B4, C4, D4, E4, F4, G4, H4,
	A5 = 0x40, B5, C5, D5, E5, F5, G5, H5,
	A6 = 0x50, B6, C6, D6, E6, F6, G6, H6,
	A7 = 0x60, B7, C7, D7, E7, F7, G7, H7,
	A8 = 0x70, B8, C8, D8, E8, F8, G8, H8,
	XX = 0x7F
	};
=====================================================================
Fimbulwinter:
// good squares to know
#define A1	0
#define B1	1
#define C1	2
#define D1	3
#define E1	4
#define F1	5
#define G1	6
#define H1	7

#define A8	56
#define B8	57
#define C8	58
#define D8	59
#define E8  60
#define F8	61
#define G8	62
#define H8	63
=====================================================================
Fruit:
const int SquareFrom64[64] = {
   A1, B1, C1, D1, E1, F1, G1, H1,
   A2, B2, C2, D2, E2, F2, G2, H2,
   A3, B3, C3, D3, E3, F3, G3, H3,
   A4, B4, C4, D4, E4, F4, G4, H4,
   A5, B5, C5, D5, E5, F5, G5, H5,
   A6, B6, C6, D6, E6, F6, G6, H6,
   A7, B7, C7, D7, E7, F7, G7, H7,
   A8, B8, C8, D8, E8, F8, G8, H8,
};

=====================================================================
Galahad:
	   enum LocationType { A8,B8,C8,D8,E8,F8,G8,H8,
                       A7,B7,C7,D7,E7,F7,G7,H7,
                       A6,B6,C6,D6,E6,F6,G6,H6,
                       A5,B5,C5,D5,E5,F5,G5,H5,
                       A4,B4,C4,D4,E4,F4,G4,H4,
                       A3,B3,C3,D3,E3,F3,G3,H3,
                       A2,B2,C2,D2,E2,F2,G2,H2,
                       A1,B1,C1,D1,E1,F1,G1,H1,
                       Invalid };

=====================================================================
Gerbil:
#define	isqA1	0
#define	isqB1	1
#define	isqC1	2
#define	isqD1	3
#define	isqE1	4
#define	isqF1	5
#define	isqG1	6
#define	isqH1	7
#define	isqA2	16
#define	isqB2	17
#define	isqC2	18
#define	isqD2	19
#define	isqE2	20
#define	isqF2	21
#define	isqG2	22
#define	isqH2	23
#define	isqA3	32
#define	isqB3	33
#define	isqC3	34
#define	isqD3	35
#define	isqE3	36
#define	isqF3	37
#define	isqG3	38
#define	isqH3	39
#define	isqA4	48
#define	isqB4	49
#define	isqC4	50
#define	isqD4	51
#define	isqE4	52
#define	isqF4	53
#define	isqG4	54
#define	isqH4	55
#define	isqA5	64
#define	isqB5	65
#define	isqC5	66
#define	isqD5	67
#define	isqE5	68
#define	isqF5	69
#define	isqG5	70
#define	isqH5	71
#define	isqA6	80
#define	isqB6	81
#define	isqC6	82
#define	isqD6	83
#define	isqE6	84
#define	isqF6	85
#define	isqG6	86
#define	isqH6	87
#define	isqA7	96
#define	isqB7	97
#define	isqC7	98
#define	isqD7	99
#define	isqE7	100
#define	isqF7	101
#define	isqG7	102
#define	isqH7	103
#define	isqA8	112
#define	isqB8	113
#define	isqC8	114
#define	isqD8	115
#define	isqE8	116
#define	isqF8	117
#define	isqG8	118
#define	isqH8	119

=====================================================================

GES:
bk_board[0] = square a1
bk_board[1] = square b1
:
bk_board[63] = square h8
=====================================================================
GK:
enum tag_board_square_names {
	A1,B1,C1,D1,E1,F1,G1,H1,
	A2,B2,C2,D2,E2,F2,G2,H2,
	A3,B3,C3,D3,E3,F3,G3,H3,
	A4,B4,C4,D4,E4,F4,G4,H4,
	A5,B5,C5,D5,E5,F5,G5,H5,
	A6,B6,C6,D6,E6,F6,G6,H6,
	A7,B7,C7,D7,E7,F7,G7,H7,
	A8,B8,C8,D8,E8,F8,G8,H8
};
=====================================================================
Glaurung:
enum {
  A1=0x00, B1=0x01, C1=0x02, D1=0x03, E1=0x04, F1=0x05, G1=0x06, H1=0x07,
  A2=0x10, B2=0x11, C2=0x12, D2=0x13, E2=0x14, F2=0x15, G2=0x16, H2=0x17,
  A3=0x20, B3=0x21, C3=0x22, D3=0x23, E3=0x24, F3=0x25, G3=0x26, H3=0x27,
  A4=0x30, B4=0x31, C4=0x32, D4=0x33, E4=0x34, F4=0x35, G4=0x36, H4=0x37,
  A5=0x40, B5=0x41, C5=0x42, D5=0x43, E5=0x44, F5=0x45, G5=0x46, H5=0x47,
  A6=0x50, B6=0x51, C6=0x52, D6=0x53, E6=0x54, F6=0x55, G6=0x56, H6=0x57,
  A7=0x60, B7=0x61, C7=0x62, D7=0x63, E7=0x64, F7=0x65, G7=0x66, H7=0x67,
  A8=0x70, B8=0x71, C8=0x72, D8=0x73, E8=0x74, F8=0x75, G8=0x76, H8=0x77
};

=====================================================================
GnuChess:
enum Square {
    A1, B1, C1, D1, E1, F1, G1, H1,
    A2, B2, C2, D2, E2, F2, G2, H2,
    A3, B3, C3, D3, E3, F3, G3, H3,
    A4, B4, C4, D4, E4, F4, G4, H4,
    A5, B5, C5, D5, E5, F5, G5, H5,
    A6, B6, C6, D6, E6, F6, G6, H6,
    A7, B7, C7, D7, E7, F7, G7, H7,
    A8, B8, C8, D8, E8, F8, G8, H8
};
=====================================================================
Goober:
#define         a8                      0
#define         b8                      1
#define         c8                      2
#define         d8                      3
#define         e8                      4
#define         f8                      5
#define         g8                      6
#define         h8                      7

#define         a7                      16
#define         b7                      17
#define         c7                      18
#define         d7                      19
#define         e7                      20
#define         f7                      21
#define         g7                      22
#define         h7                      23

#define         a6                      32
#define         b6                      33
#define         c6                      34
#define         d6                      35
#define         e6                      36
#define         f6                      37
#define         g6                      38
#define         h6                      39

#define         a5                      48
#define         b5                      49
#define         c5                      50
#define         d5                      51
#define         e5                      52
#define         f5                      53
#define         g5                      54
#define         h5                      55

#define         a4                      64
#define         b4                      65
#define         c4                      66
#define         d4                      67
#define         e4                      68
#define         f4                      69
#define         g4                      70
#define         h4                      71

#define         a3                      80
#define         b3                      81
#define         c3                      82
#define         d3                      83
#define         e3                      84
#define         f3                      85
#define         g3                      86
#define         h3                      87

#define         a2                      96
#define         b2                      97
#define         c2                      98
#define         d2                      99
#define         e2                      100
#define         f2                      101
#define         g2                      102
#define         h2                      103

#define         a1                      112
#define         b1                      113
#define         c1                      114
#define         d1                      115
#define         e1                      116
#define         f1                      117
#define         g1                      118
#define         h1                      119
=====================================================================
Greko:
const Bitboard BB_A1	=	LL(0x0100000000000000);
const Bitboard BB_B1	=	LL(0x0200000000000000);
const Bitboard BB_C1	=	LL(0x0400000000000000);
const Bitboard BB_D1	=	LL(0x0800000000000000);
const Bitboard BB_E1	=	LL(0x1000000000000000);
const Bitboard BB_F1	=	LL(0x2000000000000000);
const Bitboard BB_G1	=	LL(0x4000000000000000);
const Bitboard BB_H1	=	LL(0x8000000000000000);

const Bitboard BB_A2	=	LL(0x0001000000000000);
const Bitboard BB_B2	=	LL(0x0002000000000000);
const Bitboard BB_C2	=	LL(0x0004000000000000);
const Bitboard BB_D2	=	LL(0x0008000000000000);
const Bitboard BB_E2	=	LL(0x0010000000000000);
const Bitboard BB_F2	=	LL(0x0020000000000000);
const Bitboard BB_G2	=	LL(0x0040000000000000);
const Bitboard BB_H2	=	LL(0x0080000000000000);

const Bitboard BB_C2F2  =   BB_C2 | BB_D2 | BB_E2 | BB_F2;

const Bitboard BB_A3	=	LL(0x0000010000000000);
const Bitboard BB_B3	=	LL(0x0000020000000000);
const Bitboard BB_C3	=	LL(0x0000040000000000);
const Bitboard BB_D3	=	LL(0x0000080000000000);
const Bitboard BB_E3	=	LL(0x0000100000000000);
const Bitboard BB_F3	=	LL(0x0000200000000000);
const Bitboard BB_G3	=	LL(0x0000400000000000);
const Bitboard BB_H3	=	LL(0x0000800000000000);

const Bitboard BB_A4	=	LL(0x0000000100000000);
const Bitboard BB_B4	=	LL(0x0000000200000000);
const Bitboard BB_C4	=	LL(0x0000000400000000);
const Bitboard BB_D4	=	LL(0x0000000800000000);
const Bitboard BB_E4	=	LL(0x0000001000000000);
const Bitboard BB_F4	=	LL(0x0000002000000000);
const Bitboard BB_G4	=	LL(0x0000004000000000);
const Bitboard BB_H4	=	LL(0x0000008000000000);

const Bitboard BB_A5	=	LL(0x0000000001000000);
const Bitboard BB_B5	=	LL(0x0000000002000000);
const Bitboard BB_C5	=	LL(0x0000000004000000);
const Bitboard BB_D5	=	LL(0x0000000008000000);
const Bitboard BB_E5	=	LL(0x0000000010000000);
const Bitboard BB_F5	=	LL(0x0000000020000000);
const Bitboard BB_G5	=	LL(0x0000000040000000);
const Bitboard BB_H5	=	LL(0x0000000080000000);

const Bitboard BB_A6	=	LL(0x0000000000010000);
const Bitboard BB_B6	=	LL(0x0000000000020000);
const Bitboard BB_C6	=	LL(0x0000000000040000);
const Bitboard BB_D6	=	LL(0x0000000000080000);
const Bitboard BB_E6	=	LL(0x0000000000100000);
const Bitboard BB_F6	=	LL(0x0000000000200000);
const Bitboard BB_G6	=	LL(0x0000000000400000);
const Bitboard BB_H6	=	LL(0x0000000000800000);

const Bitboard BB_A7	=	LL(0x0000000000000100);
const Bitboard BB_B7	=	LL(0x0000000000000200);
const Bitboard BB_C7	=	LL(0x0000000000000400);
const Bitboard BB_D7	=	LL(0x0000000000000800);
const Bitboard BB_E7	=	LL(0x0000000000001000);
const Bitboard BB_F7	=	LL(0x0000000000002000);
const Bitboard BB_G7	=	LL(0x0000000000004000);
const Bitboard BB_H7	=	LL(0x0000000000008000);

const Bitboard BB_C7F7  =   BB_C7 | BB_D7 | BB_E7 | BB_F7;

const Bitboard BB_A8	=	LL(0x0000000000000001);
const Bitboard BB_B8	=	LL(0x0000000000000002);
const Bitboard BB_C8	=	LL(0x0000000000000004);
const Bitboard BB_D8	=	LL(0x0000000000000008);
const Bitboard BB_E8	=	LL(0x0000000000000010);
const Bitboard BB_F8	=	LL(0x0000000000000020);
const Bitboard BB_G8	=	LL(0x0000000000000040);
const Bitboard BB_H8	=	LL(0x0000000000000080);
=====================================================================
grhino-0.15.0
enum {
	A1 = 0, B1, C1, D1, E1, F1, G1, H1,
	A2, B2, C2, D2, E2, F2, G2, H2,
	A3, B3, C3, D3, E3, F3, G3, H3,
	A4, B4, C4, D4, E4, F4, G4, H4,
	A5, B5, C5, D5, E5, F5, G5, H5,
	A6, B6, C6, D6, E6, F6, G6, H6,
	A7, B7, C7, D7, E7, F7, G7, H7,
	A8, B8, C8, D8, E8, F8, G8, H8
};

=====================================================================
Hoichess:
enum squares {
	NO_SQUARE = -1,
	A1, B1, C1, D1, E1, F1, G1, H1,
	A2, B2, C2, D2, E2, F2, G2, H2,
	A3, B3, C3, D3, E3, F3, G3, H3,
	A4, B4, C4, D4, E4, F4, G4, H4,
	A5, B5, C5, D5, E5, F5, G5, H5,
	A6, B6, C6, D6, E6, F6, G6, H6,
	A7, B7, C7, D7, E7, F7, G7, H7,
	A8, B8, C8, D8, E8, F8, G8, H8
};
=====================================================================

Jack-Wiedrick chess program (name unknown):
enum
  {

    h1 = 1, g1, f1, e1, d1, c1, b1, a1,
    h2, g2, f2, e2, d2, c2, b2, a2,
    h3, g3, f3, e3, d3, c3, b3, a3,
    h4, g4, f4, e4, d4, c4, b4, a4,
    h5, g5, f5, e5, d5, c5, b5, a5,
    h6, g6, f6, e6, d6, c6, b6, a6,
    h7, g7, f7, e7, d7, c7, b7, a7,
    h8, g8, f8, e8, d8, c8, b8, a8
  };
=====================================================================
junfa-0.0.2
// friendly index identifiers for the board.
enum {
  a9, b9, c9, d9, e9, f9, g9, h9, i9,
  a8, b8, c8, d8, e8, f8, g8, h8, i8,
  a7, b7, c7, d7, e7, f7, g7, h7, i7,
  a6, b6, c6, d6, e6, f6, g6, h6, i6,
  a5, b5, c5, d5, e5, f5, g5, h5, i5,
  a4, b4, c4, d4, e4, f4, g4, h4, i4,
  a3, b3, c3, d3, e3, f3, g3, h3, i3,
  a2, b2, c2, d2, e2, f2, g2, h2, i2,
  a1, b1, c1, d1, e1, f1, g1, h1, i1,
  a0, b0, c0, d0, e0, f0, g0, h0, i0
};
=====================================================================
Kace:
enum { A1, B1, C1, D1, E1, F1, G1, H1,
       A2, B2, C2, D2, E2, F2, G2, H2,
       A3, B3, C3, D3, E3, F3, G3, H3,
       A4, B4, C4, D4, E4, F4, G4, H4,
       A5, B5, C5, D5, E5, F5, G5, H5,
       A6, B6, C6, D6, E6, F6, G6, H6,
       A7, B7, C7, D7, E7, F7, G7, H7,
       A8, B8, C8, D8, E8, F8, G8, H8 };

=====================================================================
Kiwi:
enum Square
{
    A1 = 0, B1, C1, D1, E1, F1, G1, H1,
        A2, B2, C2, D2, E2, F2, G2, H2,
        A3, B3, C3, D3, E3, F3, G3, H3,
        A4, B4, C4, D4, E4, F4, G4, H4,
        A5, B5, C5, D5, E5, F5, G5, H5,
        A6, B6, C6, D6, E6, F6, G6, H6,
        A7, B7, C7, D7, E7, F7, G7, H7,
        A8, B8, C8, D8, E8, F8, G8, H8
};
=====================================================================
Knightcap:
typedef enum {A1=0, A2, A3, A4, A5, A6, A7, A8,
	      B1, B2, B3, B4, B5, B6, B7, B8,
	      C1, C2, C3, C4, C5, C6, C7, C8,
	      D1, D2, D3, D4, D5, D6, D7, D8,
	      E1, E2, E3, E4, E5, E6, E7, E8,
	      F1, F2, F3, F4, F5, F6, F7, F8,
	      G1, G2, G3, G4, G5, G6, G7, G8,
	      H1, H2, H3, H4, H5, H6, H7, H8} SquareT;

=====================================================================
Leila:
typedef enum SQUARE {
	A1, B1, C1, D1, E1, F1, G1, H1,
	A2, B2, C2, D2, E2, F2, G2, H2,
	A3, B3, C3, D3, E3, F3, G3, H3,
	A4, B4, C4, D4, E4, F4, G4, H4,
	A5, B5, C5, D5, E5, F5, G5, H5,
	A6, B6, C6, D6, E6, F6, G6, H6,
	A7, B7, C7, D7, E7, F7, G7, H7,
	A8, B8, C8, D8, E8, F8, G8, H8, INVALID_SQUARE } squares;
=====================================================================
Logician:
char           *coord[] = {
    "a8B", "b8B", "c8B", "d8B", "e8B", "f8B", "g8B", "h8B",
    "a8R", "b8R", "c8R", "d8R", "e8R", "f8R", "g8R", "h8R",
    "a8N", "b8N", "c8N", "d8N", "e8N", "f8N", "g8N", "h8N",
    "a8", "b8", "c8", "d8", "e8", "f8", "g8", "h8",
    "a7", "b7", "c7", "d7", "e7", "f7", "g7", "h7",
    "a6", "b6", "c6", "d6", "e6", "f6", "g6", "h6",
    "a5", "b5", "c5", "d5", "e5", "f5", "g5", "h5",
    "a4", "b4", "c4", "d4", "e4", "f4", "g4", "h4",
    "a3", "b3", "c3", "d3", "e3", "f3", "g3", "h3",
    "a2", "b2", "c2", "d2", "e2", "f2", "g2", "h2",
    "a1", "b1", "c1", "d1", "e1", "f1", "g1", "h1"
};
=====================================================================
Minimax:
#define  A1    21
#define  B1    22
#define  C1    23
#define  D1    24
#define  E1    25
#define  F1    26
#define  G1    27
#define  H1    28
#define  C2    33
#define  H2    38
#define  A3    41
#define  C3    43
#define  D3    44
#define  E3    45
#define  A6    71
#define  C6    73
#define  D6    74
#define  E6    75
#define  A7    81
#define  C7    83
#define  H7    88
#define  A8    91
#define  B8    92
#define  C8    93
#define  D8    94
#define  E8    95
#define  F8    96
#define  G8    97
#define  H8    98
=====================================================================
Monsoon:
#define A8 0x00
#define B8 0x01
#define C8 0x02
#define D8 0x03
#define E8 0x04
#define F8 0x05
#define G8 0x06
#define H8 0x07

#define A7 0x10
#define B7 0x11
#define C7 0x12
#define D7 0x13
#define E7 0x14
#define F7 0x15
#define G7 0x16
#define H7 0x17

#define A6 0x20
#define B6 0x21
#define C6 0x22
#define D6 0x23
#define E6 0x24
#define F6 0x25
#define G6 0x26
#define H6 0x27

#define A5 0x30
#define B5 0x31
#define C5 0x32
#define D5 0x33
#define E5 0x34
#define F5 0x35
#define G5 0x36
#define H5 0x37

#define A4 0x40
#define B4 0x41
#define C4 0x42
#define D4 0x43
#define E4 0x44
#define F4 0x45
#define G4 0x46
#define H4 0x47

#define A3 0x50
#define B3 0x51
#define C3 0x52
#define D3 0x53
#define E3 0x54
#define F3 0x55
#define G3 0x56
#define H3 0x57

#define A2 0x60
#define B2 0x61
#define C2 0x62
#define D2 0x63
#define E2 0x64
#define F2 0x65
#define G2 0x66
#define H2 0x67

#define A1 0x70
#define B1 0x71
#define C1 0x72
#define D1 0x73
#define E1 0x74
#define F1 0x75
#define G1 0x76
#define H1 0x77
=====================================================================
Moosechess:
typedef enum SQUARES {
    A1, B1, C1, D1, E1, F1, G1, H1,
    A2, B2, C2, D2, E2, F2, G2, H2,
    A3, B3, C3, D3, E3, F3, G3, H3,
    A4, B4, C4, D4, E4, F4, G4, H4,
    A5, B5, C5, D5, E5, F5, G5, H5,
    A6, B6, C6, D6, E6, F6, G6, H6,
    A7, B7, C7, D7, E7, F7, G7, H7,
    A8, B8, C8, D8, E8, F8, G8, H8
}   SQUARES;
=====================================================================
Movei:
	A1=0,
	B1=1,
	C1=2,
	D1=3,
	E1=4,
	F1=5,
	G1=6,
	H1=7,
	A2=8,
	B2=9,
	C2=10,
	D2=11,
	E2=12,
	F2=13,
	G2=14,
	H2=15,
	A3=16,
	B3=17,
	C3=18,
	D3=19,
	E3=20,
	F3=21,
	G3=22,
	H3=23,
	A4=24,
	B4=25,
	C4=26,
	D4=27,
	E4=28,
	F4=29,
	G4=30,
	H4=31,
	A5=32,
	B5=33,
	C5=34,
	D5=35,
	E5=36,
	F5=37,
	G5=38,
	H5=39,
	A6=40,
	B6=41,
	C6=42,
	D6=43,
	E6=44,
	F6=45,
	G6=46,
	H6=47,
	A7=48,
	B7=49,
	C7=50,
	D7=51,
	E7=52,
	F7=53,
	G7=54,
	H7=55,
	A8=56,
	B8=57,
	C8=58,
	D8=59,
	E8=60,
	F8=61,
	G8=62,
	H8=63,
=====================================================================
MSCP:
enum {                  /* 64 squares */
        A1, A2, A3, A4, A5, A6, A7, A8,
        B1, B2, B3, B4, B5, B6, B7, B8,
        C1, C2, C3, C4, C5, C6, C7, C8,
        D1, D2, D3, D4, D5, D6, D7, D8,
        E1, E2, E3, E4, E5, E6, E7, E8,
        F1, F2, F3, F4, F5, F6, F7, F8,
        G1, G2, G3, G4, G5, G6, G7, G8,
        H1, H2, H3, H4, H5, H6, H7, H8,
        CASTLE,         /* Castling rights */
        EP,             /* En-passant square */
        LAST            /* Ply number of last capture or pawn push */
};
=====================================================================
Natch:
typedef enum
{
    a1				= 0x00,
    a2				= 0x10,
    a3				= 0x20,
    a4				= 0x30,
    a5				= 0x40,
    a6				= 0x50,
    a7				= 0x60,
    a8				= 0x70,
    b1				= 0x01,
    b2				= 0x11,
    b3				= 0x21,
    b4				= 0x31,
    b5				= 0x41,
    b6				= 0x51,
    b7				= 0x61,
    b8				= 0x71,
    c1				= 0x02,
    c2				= 0x12,
    c3				= 0x22,
    c4				= 0x32,
    c5				= 0x42,
    c6				= 0x52,
    c7				= 0x62,
    c8				= 0x72,
    d1				= 0x03,
    d2				= 0x13,
    d3				= 0x23,
    d4				= 0x33,
    d5				= 0x43,
    d6				= 0x53,
    d7				= 0x63,
    d8				= 0x73,
    e1				= 0x04,
    e2				= 0x14,
    e3				= 0x24,
    e4				= 0x34,
    e5				= 0x44,
    e6				= 0x54,
    e7				= 0x64,
    e8				= 0x74,
    f1				= 0x05,
    f2				= 0x15,
    f3				= 0x25,
    f4				= 0x35,
    f5				= 0x45,
    f6				= 0x55,
    f7				= 0x65,
    f8				= 0x75,
    g1				= 0x06,
    g2				= 0x16,
    g3				= 0x26,
    g4				= 0x36,
    g5				= 0x46,
    g6				= 0x56,
    g7				= 0x66,
    g8				= 0x76,
    h1				= 0x07,
    h2				= 0x17,
    h3				= 0x27,
    h4				= 0x37,
    h5				= 0x47,
    h6				= 0x57,
    h7				= 0x67,
    h8				= 0x77,

    PIECE_DEJA_TRAITEE		= 0xFB,
    CASE_D_UNE_PIECE_CAPTUREE	= 0xFC,
    CASE_PAS_DE_PROMOTION	= 0xFD,
    CASE_ARRIVEE_QUELCONQUE	= 0xFE

} square_t ;
=====================================================================
Natwarlal:
/// These are the enumeration for squares
enum Squares {
   A1,       B1, C1, D1, E1, F1, G1, H1,
   A2 = 16,  B2, C2, D2, E2, F2, G2, H2,
   A3 = 32,  B3, C3, D3, E3, F3, G3, H3,
   A4 = 48,  B4, C4, D4, E4, F4, G4, H4,
   A5 = 64,  B5, C5, D5, E5, F5, G5, H5,
   A6 = 80,  B6, C6, D6, E6, F6, G6, H6,
   A7 = 96,  B7, C7, D7, E7, F7, G7, H7,
   A8 = 112, B8, C8, D8, E8, F8, G8, H8,
   EMPTYSQ = 127,
   ENDOFBOARD
};
=====================================================================
Omar:
#define A1 0
#define A2 16
#define A3 32
#define A4 48
#define A5 64
#define A6 80
#define A7 96
#define A8 112

#define B1 1
#define B2 17
#define B3 33
#define B4 49
#define B5 65
#define B6 81
#define B7 97
#define B8 113

#define C1 2
#define C2 18
#define C3 34
#define C4 50
#define C5 66
#define C6 82
#define C7 98
#define C8 114

#define D1 3
#define D2 19
#define D3 35
#define D4 51
#define D5 67
#define D6 83
#define D7 99
#define D8 115

#define E1 4
#define E2 20
#define E3 36
#define E4 52
#define E5 68
#define E6 84
#define E7 100
#define E8 116

#define F1 5
#define F2 21
#define F3 37
#define F4 53
#define F5 69
#define F6 85
#define F7 101
#define F8 117

#define G1 6
#define G2 22
#define G3 38
#define G4 54
#define G5 70
#define G6 86
#define G7 102
#define G8 118

#define H1 7
#define H2 23
#define H3 39
#define H4 55
#define H5 71
#define H6 87
#define H7 103
#define H8 119
=====================================================================

OpenChess:
//square defines
#define h1 0
#define g1 1
#define f1 2
#define e1 3
#define d1 4
#define c1 5
#define b1 6
#define a1 7
#define h2 8
#define g2 9
#define f2 10
#define e2 11
#define d2 12
#define c2 13
#define b2 14
#define a2 15
#define h3 16
#define g3 17
#define f3 18
#define e3 19
#define d3 20
#define c3 21
#define b3 22
#define a3 23
#define h4 24
#define g4 25
#define f4 26
#define e4 27
#define d4 28
#define c4 29
#define b4 30
#define a4 31
#define h5 32
#define g5 33
#define f5 34
#define e5 35
#define d5 36
#define c5 37
#define b5 38
#define a5 39
#define h6 40
#define g6 41
#define f6 42
#define e6 43
#define d6 44
#define c6 45
#define b6 46
#define a6 47
#define h7 48
#define g7 49
#define f7 50
#define e7 51
#define d7 52
#define c7 53
#define b7 54
#define a7 55
#define h8 56
#define g8 57
#define f8 58
#define e8 59
#define d8 60
#define c8 61
#define b8 62
#define a8 63
=====================================================================
Orbius:
#define H1 0
#define G1 1
#define F1 2
#define E1 3
#define D1 4
#define C1 5
#define B1 6
#define A1 7

#define H2 8
#define G2 9
#define F2 10
#define E2 11
#define D2 12
#define C2 13
#define B2 14
#define A2 15

#define H3 16
#define G3 17
#define F3 18
#define E3 19
#define D3 20
#define C3 21
#define B3 22
#define A3 23

#define H4 24
#define G4 25
#define F4 26
#define E4 27
#define D4 28
#define C4 29
#define B4 30
#define A4 31

#define H5 32
#define G5 33
#define F5 34
#define E5 35
#define D5 36
#define C5 37
#define B5 38
#define A5 39

#define H6 40
#define G6 41
#define F6 42
#define E6 43
#define D6 44
#define C6 45
#define B6 46
#define A6 47

#define H7 48
#define G7 49
#define F7 50
#define E7 51
#define D7 52
#define C7 53
#define B7 54
#define A7 55

#define H8 56
#define G8 57
#define F8 58
#define E8 59
#define D8 60
#define C8 61
#define B8 62
#define A8 63

=====================================================================
Parrot:
#define A1  0
#define B1  1
#define C1  2
#define D1  3
#define E1  4
#define F1  5
#define G1  6
#define H1  7
#define A2  8
#define B2  9
#define C2 10
#define D2 11
#define E2 12
#define F2 13
#define G2 14
#define H2 15
#define A3 16
#define B3 17
#define C3 18
#define D3 19
#define E3 20
#define F3 21
#define G3 22
#define H3 23
#define A4 24
#define B4 25
#define C4 26
#define D4 27
#define E4 28
#define F4 29
#define G4 30
#define H4 31
#define A5 32
#define B5 33
#define C5 34
#define D5 35
#define E5 36
#define F5 37
#define G5 38
#define H5 39
#define A6 40
#define B6 41
#define C6 42
#define D6 43
#define E6 44
#define F6 45
#define G6 46
#define H6 47
#define A7 48
#define B7 49
#define C7 50
#define D7 51
#define E7 52
#define F7 53
#define G7 54
#define H7 55
#define A8 56
#define B8 57
#define C8 58
#define D8 59
#define E8 60
#define F8 61
#define G8 62
#define H8 63
=====================================================================
Pepito:
typedef enum
  {
    A8, B8, C8, D8, E8, F8, G8, H8,
    A7, B7, C7, D7, E7, F7, G7, H7,
    A6, B6, C6, D6, E6, F6, G6, H6,
    A5, B5, C5, D5, E5, F5, G5, H5,
    A4, B4, C4, D4, E4, F4, G4, H4,
    A3, B3, C3, D3, E3, F3, G3, H3,
    A2, B2, C2, D2, E2, F2, G2, H2,
    A1, B1, C1, D1, E1, F1, G1, H1
  } casillas;
=====================================================================
Phalanx:
/* Squares */

#define A1 21
#define B1 22
#define C1 23
#define D1 24
#define E1 25
#define F1 26
#define G1 27
#define H1 28

#define A2 31
#define B2 32
#define C2 33
#define D2 34
#define E2 35
#define F2 36
#define G2 37
#define H2 38

#define A3 41
#define B3 42
#define C3 43
#define D3 44
#define E3 45
#define F3 46
#define G3 47
#define H3 48

#define A4 51
#define B4 52
#define C4 53
#define D4 54
#define E4 55
#define F4 56
#define G4 57
#define H4 58

#define A5 61
#define B5 62
#define C5 63
#define D5 64
#define E5 65
#define F5 66
#define G5 67
#define H5 68

#define A6 71
#define B6 72
#define C6 73
#define D6 74
#define E6 75
#define F6 76
#define G6 77
#define H6 78

#define A7 81
#define B7 82
#define C7 83
#define D7 84
#define E7 85
#define F7 86
#define G7 87
#define H7 88

#define A8 91
#define B8 92
#define C8 93
#define D8 94
#define E8 95
#define F8 96
#define G8 97
#define H8 98
#define H9 99                   /* a bumper: we are out of board */
=====================================================================
Philemon:
enum squares {
    A1, B1, C1, D1, E1, F1, G1, H1,
    A2, B2, C2, D2, E2, F2, G2, H2,
    A3, B3, C3, D3, E3, F3, G3, H3,
    A4, B4, C4, D4, E4, F4, G4, H4,
    A5, B5, C5, D5, E5, F5, G5, H5,
    A6, B6, C6, D6, E6, F6, G6, H6,
    A7, B7, C7, D7, E7, F7, G7, H7,
    A8, B8, C8, D8, E8, F8, G8, H8
}   squares;

=====================================================================
PolarChess:
enum { a1=0x00, b1, c1, d1, e1, f1, g1, h1,
       a2=0x10, b2, c2, d2, e2, f2, g2, h2,
       a3=0x20, b3, c3, d3, e3, f3, g3, h3,
       a4=0x30, b4, c4, d4, e4, f4, g4, h4,
       a5=0x40, b5, c5, d5, e5, f5, g5, h5,
       a6=0x50, b6, c6, d6, e6, f6, g6, h6,
       a7=0x60, b7, c7, d7, e7, f7, g7, h7,
       a8=0x70, b8, c8, d8, e8, f8, g8, h8,
       UNDEF=0x88 };
=====================================================================
Prophet:
enum SQUARES { A8,B8,C8,D8,E8,F8,G8,H8,
               A7,B7,C7,D7,E7,F7,G7,H7,
               A6,B6,C6,D6,E6,F6,G6,H6,
               A5,B5,C5,D5,E5,F5,G5,H5,
               A4,B4,C4,D4,E4,F4,G4,H4,
               A3,B3,C3,D3,E3,F3,G3,H3,
               A2,B2,C2,D2,E2,F2,G2,H2,
               A1,B1,C1,D1,E1,F1,G1,H1,
               NO_SQUARE };

=====================================================================

Russell:
const string		Game::squareNames[64] = {
				"a1", "b1", "c1", "d1", "e1", "f1", "g1", "h1",
				"a2", "b2", "c2", "d2", "e2", "f2", "g2", "h2",
				"a3", "b3", "c3", "d3", "e3", "f3", "g3", "h3",
				"a4", "b4", "c4", "d4", "e4", "f4", "g4", "h4",
				"a5", "b5", "c5", "d5", "e5", "f5", "g5", "h5",
				"a6", "b6", "c6", "d6", "e6", "f6", "g6", "h6",
				"a7", "b7", "c7", "d7", "e7", "f7", "g7", "h7",
				"a8", "b8", "c8", "d8", "e8", "f8", "g8", "h8"};
=====================================================================
Romichess:
#define     A1          0
#define     B1          1
#define     C1          2
#define     D1          3
#define     E1          4
#define     F1          5
#define     G1          6
#define     H1          7
#define     A2          8
#define     B2          9
#define     C2          10
#define     D2          11
#define     E2          12
#define     F2          13
#define     G2          14
#define     H2          15
#define     A3          16
#define     B3          17
#define     C3          18
#define     D3          19
#define     E3          20
#define     F3          21
#define     G3          22
#define     H3          23
#define     A4          24
#define     B4          25
#define     C4          26
#define     D4          27
#define     E4          28
#define     F4          29
#define     G4          30
#define     H4          31
#define     A5          32
#define     B5          33
#define     C5          34
#define     D5          35
#define     E5          36
#define     F5          37
#define     G5          38
#define     H5          39
#define     A6          40
#define     B6          41
#define     C6          42
#define     D6          43
#define     E6          44
#define     F6          45
#define     G6          46
#define     H6          47
#define     A7          48
#define     B7          49
#define     C7          50
#define     D7          51
#define     E7          52
#define     F7          53
#define     G7          54
#define     H7          55
#define     A8          56
#define     B8          57
#define     C8          58
#define     D8          59
#define     E8          60
#define     F8          61
#define     G8          62
#define     H8          63

#define     NOEP        64
=====================================================================

Sage and Simon:
//   0000000000000000000000000000000000011000000000000000000000000000
//   ^                                   ^  ^       ^       ^       ^
//   h8                                  d4 a4      a3      a2      a1
//sq 63                                  27 24      16      8       0
=====================================================================
SachyC:
#define       A1 21
#define       B1 22
#define       C1 23
#define       D1 24
#define       E1 25
#define       F1 26
#define       G1 27
#define       H1 28

#define       D2 34
#define       E2 35
#define       D7 84
#define       E7 85

#define       D4 54
#define       E4 55
#define       D5 64
#define       E5 65

#define       A6 71
#define       A7 81
#define       H2 38
#define       H3 48

#define       A8 91
#define       B8 92
#define       C8 93
#define       D8 94
#define       E8 95
#define       F8 96
#define       G8 97
#define       H8 98
=====================================================================
Scorpio:
enum square_names {
    A1 = 0, B1, C1, D1, E1, F1, G1, H1,
    A2 = 16, B2, C2, D2, E2, F2, G2, H2,
    A3 = 32, B3, C3, D3, E3, F3, G3, H3,
    A4 = 48, B4, C4, D4, E4, F4, G4, H4,
    A5 = 64, B5, C5, D5, E5, F5, G5, H5,
    A6 = 80, B6, C6, D6, E6, F6, G6, H6,
    A7 = 96, B7, C7, D7, E7, F7, G7, H7,
    A8 = 112, B8, C8, D8, E8, F8, G8, H8
};

=====================================================================
Skaki:
enum Squares
{	A8, B8, C8, D8, E8, F8, G8, H8,
	A7, B7, C7, D7, E7, F7, G7, H7,
	A6,	B6, C6, D6, E6, F6, G6, H6,
	A5, B5, C5, D5, E5, F5, G5, H5,
	A4, B4, C4, D4, E4, F4, G4, H4,
	A3, B3, C3, D3, E3, F3, G3, H3,
	A2, B2, C2, D2, E2, F2, G2, H2,
	A1, B1, C1, D1, E1, F1, G1, H1
};
=====================================================================
Smallpotato:
/* Squares (stolen and modified from Phalanx XXII  (didn't feel like typing) */

#define A1 0
#define B1 1
#define C1 2
#define D1 3
#define E1 4
#define F1 5
#define G1 6
#define H1 7

#define A2 16
#define B2 17
#define C2 18
#define D2 19
#define E2 20
#define F2 21
#define G2 22
#define H2 23

#define A3 32
#define B3 33
#define C3 34
#define D3 35
#define E3 36
#define F3 37
#define G3 38
#define H3 39

#define A4 48
#define B4 49
#define C4 50
#define D4 51
#define E4 52
#define F4 53
#define G4 54
#define H4 55

#define A5 64
#define B5 65
#define C5 66
#define D5 67
#define E5 68
#define F5 69
#define G5 70
#define H5 71

#define A6 80
#define B6 81
#define C6 82
#define D6 83
#define E6 84
#define F6 85
#define G6 86
#define H6 87

#define A7 96
#define B7 97
#define C7 98
#define D7 99
#define E7 100
#define F7 101
#define G7 102
#define H7 103

#define A8 112
#define B8 113
#define C8 114
#define D8 115
#define E8 116
#define F8 117
#define G8 118
#define H8 119
#define I8 120
=====================================================================
SnailChess:
#define	A8		0
#define B8		1
#define C8		2
#define D8		3
#define E8		4
#define F8      5
#define G8		6
#define H8		7

#define	A7		8
#define B7		9
#define C7		10
#define D7		11
#define E7		12
#define F7		13
#define G7		14
#define H7		15

#define	A6		16
#define B6		17
#define C6		18
#define D6		19
#define E6		20
#define F6		21
#define G6		22
#define H6		23

#define	A5		24
#define B5		25
#define C5		26
#define D5		27
#define E5		28
#define F5		29
#define G5		30
#define H5		31

#define	A4		32
#define B4		33
#define C4		34
#define D4		35
#define E4		36
#define F4		37
#define G4		38
#define H4		39

#define	A3		40
#define B3		41
#define C3		42
#define D3		43
#define E3		44
#define F3		45
#define G3		46
#define H3		47

#define	A2		48
#define B2		49
#define C2		50
#define D2		51
#define E2		52
#define F2		53
#define G2		54
#define H2		55

#define	A1		56
#define B1		57
#define C1		58
#define D1		59
#define E1		60
#define F1		61
#define G1		62
#define H1		63

=====================================================================

Sune Fischer:
const uint a1 = 0;
const uint b1 = 1;
const uint c1 = 2;
const uint d1 = 3;
const uint e1 = 4;
const uint f1 = 5;
const uint g1 = 6;
const uint h1 = 7;
const uint a2 = 8;
const uint b2 = 9;
const uint c2 = 10;
const uint d2 = 11;
const uint e2 = 12;
const uint f2 = 13;
const uint g2 = 14;
const uint h2 = 15;
const uint a3 = 16;
const uint b3 = 17;
const uint c3 = 18;
const uint d3 = 19;
const uint e3 = 20;
const uint f3 = 21;
const uint g3 = 22;
const uint h3 = 23;
const uint a4 = 24;
const uint b4 = 25;
const uint c4 = 26;
const uint d4 = 27;
const uint e4 = 28;
const uint f4 = 29;
const uint g4 = 30;
const uint h4 = 31;
const uint a5 = 32;
const uint b5 = 33;
const uint c5 = 34;
const uint d5 = 35;
const uint e5 = 36;
const uint f5 = 37;
const uint g5 = 38;
const uint h5 = 39;
const uint a6 = 40;
const uint b6 = 41;
const uint c6 = 42;
const uint d6 = 43;
const uint e6 = 44;
const uint f6 = 45;
const uint g6 = 46;
const uint h6 = 47;
const uint a7 = 48;
const uint b7 = 49;
const uint c7 = 50;
const uint d7 = 51;
const uint e7 = 52;
const uint f7 = 53;
const uint g7 = 54;
const uint h7 = 55;
const uint a8 = 56;
const uint b8 = 57;
const uint c8 = 58;
const uint d8 = 59;
const uint e8 = 60;
const uint f8 = 61;
const uint g8 = 62;
const uint h8 = 63;
=====================================================================
Sunsetter:
#define A1 0
#define A2 1
#define A3 2
#define A4 3
#define A5 4
#define A6 5
#define A7 6
#define A8 7
#define B1 8
#define B2 9
#define B3 10
#define B4 11
#define B5 12
#define B6 13
#define B7 14
#define B8 15
#define C1 16
#define C2 17
#define C3 18
#define C4 19
#define C5 20
#define C6 21
#define C7 22
#define C8 23
#define D1 24
#define D2 25
#define D3 26
#define D4 27
#define D5 28
#define D6 29
#define D7 30
#define D8 31
#define E1 32
#define E2 33
#define E3 34
#define E4 35
#define E5 36
#define E6 37
#define E7 38
#define E8 39
#define F1 40
#define F2 41
#define F3 42
#define F4 43
#define F5 44
#define F6 45
#define F7 46
#define F8 47
#define G1 48
#define G2 49
#define G3 50
#define G4 51
#define G5 52
#define G6 53
#define G7 54
#define G8 55
#define H1 56
#define H2 57
#define H3 58
#define H4 59
#define H5 60
#define H6 61
#define H7 62
#define H8 63
=====================================================================
Valil chess:
        # region Frequently used squares constants
        private const int A1 = 56;
        private const int B1 = 57;
        private const int C1 = 58;
        private const int D1 = 59;
        private const int E1 = 60;
        private const int F1 = 61;
        private const int G1 = 62;
        private const int H1 = 63;

        private const int A8 = 0;
        private const int B8 = 1;
        private const int C8 = 2;
        private const int D8 = 3;
        private const int E8 = 4;
        private const int F8 = 5;
        private const int G8 = 6;
        private const int H8 = 7;

=====================================================================
Wingv:
int A8 = 56; int B8 = 57; int C8 = 58; int D8 = 59; int E8 = 60; int F8 = 61;
int G8 = 62; int H8 = 63;
int A7 = 48; int B7 = 49; int C7 = 50; int D7 = 51; int E7 = 52; int F7 = 53;
int G7 = 54; int H7 = 55;
int A2 =  8; int B2 =  9; int C2 = 10; int D2 = 11; int E2 = 12; int F2 = 13;
int G2 = 14; int H2 = 15;
int A1 =  0; int B1 =  1; int C1 =  2; int D1 =  3; int E1 =  4; int F1 =  5;
int G1 =  6; int H1 =  7;

=====================================================================
Yace:
typedef enum { A1,B1,C1,D1,E1,F1,G1,H1,
	       A2,B2,C2,D2,E2,F2,G2,H2,
	       A3,B3,C3,D3,E3,F3,G3,H3,
	       A4,B4,C4,D4,E4,F4,G4,H4,
	       A5,B5,C5,D5,E5,F5,G5,H5,
               A6,B6,C6,D6,E6,F6,G6,H6,
               A7,B7,C7,D7,E7,F7,G7,H7,
               A8,B8,C8,D8,E8,F8,G8,H8,
               BAD_SQUARE
              } SQUARES;

=====================================================================



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.