#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
#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)
#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))
#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
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;