Chess Engine
C++ chess engine with movegen, bitboards, and Arduino-friendly docs
Loading...
Searching...
No Matches
board_data.cpp
Go to the documentation of this file.
1#include "board_data.h"
2
3char pieceToCharacter[] = ".PNBRQKpnbrqk";
4char SideChar[] = "wb-";
5char rankToCharacter[] = "12345678";
6char fileToCharacter[] = "abcdefgh";
7
11
12int pieceValue[13]= { 0, 100, 325, 325, 550, 1000, 50000, 100, 325, 325, 550, 1000, 50000 };
15
22
23int Mirror64[64] = {
2456 , 57 , 58 , 59 , 60 , 61 , 62 , 63 ,
2548 , 49 , 50 , 51 , 52 , 53 , 54 , 55 ,
2640 , 41 , 42 , 43 , 44 , 45 , 46 , 47 ,
2732 , 33 , 34 , 35 , 36 , 37 , 38 , 39 ,
2824 , 25 , 26 , 27 , 28 , 29 , 30 , 31 ,
2916 , 17 , 18 , 19 , 20 , 21 , 22 , 23 ,
308 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ,
310 , 1 , 2 , 3 , 4 , 5 , 6 , 7
32};
33
bool isMinorPiece[13]
bool isKnight[13]
bool isMajorPiece[13]
Definition board_data.cpp:9
bool isKing[13]
int pieceColor[13]
Color of each piece type.
char rankToCharacter[]
Definition board_data.cpp:5
bool isBigPiece[13]
Lookup tables for piece attributes.
Definition board_data.cpp:8
char pieceToCharacter[]
Maps piece, side-to-move, rank and file to their character symbol.
Definition board_data.cpp:3
char fileToCharacter[]
Definition board_data.cpp:6
bool isPawn[13]
bool isSlingPiece[13]
bool isRookQueen[13]
int pieceValue[13]
Material value of each piece type.
bool isBishopQueen[13]
int Mirror64[64]
Square mirroring lookup from white's perspective.
char SideChar[]
Definition board_data.cpp:4
@ WHITE
Definition defs.h:44
@ BOTH
Definition defs.h:44
@ BLACK
Definition defs.h:44
@ FALSE
Definition defs.h:57
@ TRUE
Definition defs.h:57