From c8020b5c8f42ac423f054b2c87946ea8d7794da5 Mon Sep 17 00:00:00 2001 From: ianfab Date: Sun, 24 Jun 2018 01:22:12 +0200 Subject: [PATCH] Reduce limit to 32 piece types --- src/types.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/types.h b/src/types.h index 6b0f033..0003e17 100644 --- a/src/types.h +++ b/src/types.h @@ -201,7 +201,7 @@ enum Value : int { MidgameLimit = 15258, EndgameLimit = 3915 }; -const int PIECE_TYPE_BITS = 6; // PIECE_TYPE_NB = pow(2, PIECE_TYPE_BITS) +const int PIECE_TYPE_BITS = 5; // PIECE_TYPE_NB = pow(2, PIECE_TYPE_BITS) enum PieceType { NO_PIECE_TYPE, PAWN, KNIGHT, BISHOP, ROOK, -- 1.7.0.4