X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=606c7486fc8563db19d155541435f236de61415c;hb=64d6ba2e98f29db8e853071b635ae4ebd59c24f0;hp=88ee8fe233f4c50f5d0eef96facb15055946a689;hpb=dcb323bf0dda6277dad18513060cdf78cece47f2;p=stockfish diff --git a/src/position.h b/src/position.h index 88ee8fe2..606c7486 100644 --- a/src/position.h +++ b/src/position.h @@ -88,7 +88,7 @@ enum Phase { struct StateInfo { Key key, pawnKey, materialKey; - int castleRights, rule50; + int castleRights, rule50, pliesFromNull; Square epSquare; Value mgValue, egValue; Value npMaterial[2]; @@ -193,6 +193,7 @@ public: // Piece lists Square piece_list(Color c, PieceType pt, int index) const; + const Square* piece_list_begin(Color c, PieceType pt) const; // Information about attacks to or from a given square Bitboard attackers_to(Square s) const; @@ -403,6 +404,10 @@ inline Square Position::piece_list(Color c, PieceType pt, int index) const { return pieceList[c][pt][index]; } +inline const Square* Position::piece_list_begin(Color c, PieceType pt) const { + return pieceList[c][pt]; +} + inline Square Position::ep_square() const { return st->epSquare; }