X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=989694becc2ba1b97c133881863a39b7b6ac1cd8;hp=e1bdf39e2b5bbbbf7c398016301672cebd17ab4a;hb=c2d42ea8339b49e52a116e488214a14fda09d413;hpb=81cd417b4584b0e3830940c5cb122c898afde08a diff --git a/src/position.h b/src/position.h index e1bdf39e..989694be 100644 --- a/src/position.h +++ b/src/position.h @@ -173,10 +173,10 @@ public: int see_sign(Move m) const; // Accessing hash keys - Key get_key() const; - Key get_exclusion_key() const; - Key get_pawn_key() const; - Key get_material_key() const; + Key key() const; + Key exclusion_key() const; + Key pawn_key() const; + Key material_key() const; // Incremental evaluation Score value() const; @@ -394,19 +394,19 @@ inline bool Position::pawn_is_passed(Color c, Square s) const { return !(pieces(PAWN, flip(c)) & passed_pawn_mask(c, s)); } -inline Key Position::get_key() const { +inline Key Position::key() const { return st->key; } -inline Key Position::get_exclusion_key() const { +inline Key Position::exclusion_key() const { return st->key ^ zobExclusion; } -inline Key Position::get_pawn_key() const { +inline Key Position::pawn_key() const { return st->pawnKey; } -inline Key Position::get_material_key() const { +inline Key Position::material_key() const { return st->materialKey; }