X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=8bd70b1643f3d47f6d530b0a091692e63de5dde6;hp=91604e94a81d12f1068c3db6b7a62e54f30fd8f3;hb=d9113d127b491db0a427a416217d55d3d298c25e;hpb=95212222c7444538b84326208e433ac12f15e9fb diff --git a/src/position.h b/src/position.h index 91604e94..8bd70b16 100644 --- a/src/position.h +++ b/src/position.h @@ -22,9 +22,7 @@ #include "bitboard.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 @@ -433,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<>