X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=8bd70b1643f3d47f6d530b0a091692e63de5dde6;hp=e76844f6b1c07ffb9b244f1f446732566360b4e4;hb=d9113d127b491db0a427a416217d55d3d298c25e;hpb=2ff2b5972799c2cb1b68e2d82e35b9b3c7c6996d diff --git a/src/position.h b/src/position.h index e76844f6..8bd70b16 100644 --- a/src/position.h +++ b/src/position.h @@ -21,11 +21,8 @@ #define POSITION_H_INCLUDED #include "bitboard.h" -#include "color.h" #include "move.h" -#include "piece.h" -#include "square.h" -#include "value.h" +#include "types.h" /// Maximum number of plies per game (220 should be enough, because the /// maximum search depth is 100, and during position setup we reset the @@ -434,12 +431,12 @@ inline Square Position::initial_qr_square(Color c) const { template<> inline Bitboard Position::attacks_from(Square s, Color c) const { - return NonSlidingAttacksBB[make_piece(c, PAWN)][s]; + return StepAttacksBB[make_piece(c, PAWN)][s]; } template // Knight and King and white pawns inline Bitboard Position::attacks_from(Square s) const { - return NonSlidingAttacksBB[Piece][s]; + return StepAttacksBB[Piece][s]; } template<>