X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fsrc%2Fboard.h;h=461fec114c009964711f4d50e994a3e4b0f1debe;hp=c1aa22f10aff6161ba28975143265534a8feffa0;hb=15d6762279fb7e4c1fecc81699507d9011287779;hpb=534b15b1773a6f879b0b83fb0cfa0b02b003813c diff --git a/lasker-2.2.3/src/board.h b/lasker-2.2.3/src/board.h index c1aa22f..461fec1 100644 --- a/lasker-2.2.3/src/board.h +++ b/lasker-2.2.3/src/board.h @@ -65,6 +65,14 @@ #define EMPRESS 34 #define AMAZON 35 #define KING 36 +#define HAWK 37 +#define SELEPHANT 38 +#define WARLORD 39 +#define GENERAL 40 +#define LIEUTENANT 41 +#define CAPTAIN 42 +#define HOPLITE 43 +#define PIECES 44 #define MAX_BOARD_STRING_LENGTH 1280 /* Abitrarily 80 * 16 */ #define MAX_STYLES 13 @@ -103,6 +111,8 @@ #define W_MASTODON (MASTODON | WHITE) #define W_MAN2 (MAN2 | WHITE) #define W_NIGHTRIDER (NIGHTRIDER | WHITE) +#define W_HAWK (HAWK | WHITE) +#define W_SELEPHANT (SELEPHANT | WHITE) #define B_PAWN (PAWN | BLACK) #define B_KNIGHT (KNIGHT | BLACK) @@ -138,6 +148,13 @@ #define B_MASTODON (MASTODON | BLACK) #define B_MAN2 (MAN2 | BLACK) #define B_NIGHTRIDER (NIGHTRIDER | BLACK) +#define B_HAWK (HAWK | BLACK) +#define B_SELEPHANT (SELEPHANT | BLACK) +#define B_WARLORD (WARLORD | BLACK) +#define B_GENERAL (GENERAL | BLACK) +#define B_LIEUTENANT (LIEUTENANT | BLACK) +#define B_CAPTAIN (CAPTAIN | BLACK) +#define B_HOPLITE (HOPLITE | BLACK) #define isblack(p) ((p) & BLACK) #define iswhite(p) (!isblack(p)) @@ -146,7 +163,7 @@ #define colorval(p) ((p) & 0x80) #define square_color(r,f) ((((r)+(f)) & 0x01) ? BLACK : WHITE) -extern int pieceValues[KING+1]; +extern int pieceValues[PIECES]; #define BW 12 #define BH 10 @@ -156,7 +173,7 @@ typedef int board_t[BW][BH]; GENSTRUCT struct game_state_t { int board[BW][BH]; /* for bughouse */ - int holding[2][KING]; + int holding[2][PIECES]; /* For castling */ char wkmoved, wqrmoved, wkrmoved; char bkmoved, bqrmoved, bkrmoved;