X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=be43c2e41e2bf13c2926f2a163f54725726f9cae;hp=88090ad2227232394e9a5ce81cbb6fb6fe9535d8;hb=87502c0fcbeb45c3bde797aa68d14536ea3a2029;hpb=b50dc1647fa70178d09beb529815cb565f9774c0 diff --git a/src/position.h b/src/position.h index 88090ad2..be43c2e4 100644 --- a/src/position.h +++ b/src/position.h @@ -258,7 +258,7 @@ public: // Incremental evaluation Score value() const; Value non_pawn_material(Color c) const; - Score pst_delta(Piece piece, Square from, Square to) const; + static Score pst_delta(Piece piece, Square from, Square to); // Game termination checks bool is_mate() const; @@ -310,7 +310,7 @@ private: Key compute_material_key() const; // Computing incremental evaluation scores and material counts - Score pst(Color c, PieceType pt, Square s) const; + static Score pst(Color c, PieceType pt, Square s); Score compute_value() const; Value compute_non_pawn_material(Color c) const; @@ -507,11 +507,11 @@ inline Key Position::get_material_key() const { return st->materialKey; } -inline Score Position::pst(Color c, PieceType pt, Square s) const { +inline Score Position::pst(Color c, PieceType pt, Square s) { return PieceSquareTable[piece_of_color_and_type(c, pt)][s]; } -inline Score Position::pst_delta(Piece piece, Square from, Square to) const { +inline Score Position::pst_delta(Piece piece, Square from, Square to) { return PieceSquareTable[piece][to] - PieceSquareTable[piece][from]; }