X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.h;h=5605f4b6876671bd7f81f06614eb85e29d1e52dc;hp=5b93ea7dc0b97785894843b32787b7d72a874717;hb=49c50399fe39b7b80ebe1cba1b986e8759633e51;hpb=76bed11f7b79d939c250c02d73d0c1e2628e7a17 diff --git a/src/piece.h b/src/piece.h index 5b93ea7d..5605f4b6 100644 --- a/src/piece.h +++ b/src/piece.h @@ -35,8 +35,7 @@ enum PieceType { NO_PIECE_TYPE = 0, - PAWN = 1, KNIGHT = 2, BISHOP = 3, ROOK = 4, QUEEN = 5, KING = 6, - BISHOP_AND_QUEEN = 8, ROOK_AND_QUEEN = 9 + PAWN = 1, KNIGHT = 2, BISHOP = 3, ROOK = 4, QUEEN = 5, KING = 6 }; enum Piece { @@ -84,10 +83,6 @@ inline int piece_is_slider(Piece p) { return SlidingArray[int(p)]; } -inline int piece_is_slider(PieceType pt) { - return SlidingArray[int(pt)]; -} - inline SquareDelta pawn_push(Color c) { return (c == WHITE ? DELTA_N : DELTA_S); }