X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsquare.h;h=731a898e83444f549339d370587ea9f8be2d6b28;hp=621e398fb19069180f141df29423c4af171de2b6;hb=f08a6eed0d3938e451b6da384ae39ffb58f25dd4;hpb=6080fecf9cba9ac063f8f07bd25004c14016bd33 diff --git a/src/square.h b/src/square.h index 621e398f..731a898e 100644 --- a/src/square.h +++ b/src/square.h @@ -72,19 +72,12 @@ enum Direction { DIR_E = 0, DIR_N = 1, DIR_NE = 2, DIR_NW = 3, DIR_NONE = 4 }; -enum SignedDirection { - SIGNED_DIR_E = 0, SIGNED_DIR_W = 1, - SIGNED_DIR_N = 2, SIGNED_DIR_S = 3, - SIGNED_DIR_NE = 4, SIGNED_DIR_SW = 5, - SIGNED_DIR_NW = 6, SIGNED_DIR_SE = 7, - SIGNED_DIR_NONE = 8 -}; ENABLE_OPERATORS_ON(Square); ENABLE_OPERATORS_ON(File); ENABLE_OPERATORS_ON(Rank); ENABLE_OPERATORS_ON(SquareDelta); -ENABLE_OPERATORS_ON(SignedDirection); +ENABLE_OPERATORS_ON(Direction); //// @@ -95,7 +88,6 @@ const int FlipMask = 56; const int FlopMask = 7; extern uint8_t DirectionTable[64][64]; -extern uint8_t SignedDirectionTable[64][64]; ////