X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhistory.h;h=2665f24fc34628d986edc57effe612ee8c7b06fc;hp=fdc77ada3b4e4eac9117ef0a77167308b929aee4;hb=201f924d5364e8151c41fa2840bacc8381450cc5;hpb=9fc602bae74b8e09bd45ace3b42a8ce84d56b23c diff --git a/src/history.h b/src/history.h index fdc77ada..2665f24f 100644 --- a/src/history.h +++ b/src/history.h @@ -49,7 +49,7 @@ public: void clear(); void success(Piece p, Square to, Depth d); void failure(Piece p, Square to, Depth d); - int move_ordering_score(Piece p, Square to) const; + int value(Piece p, Square to) const; void set_gain(Piece p, Square to, Value delta); Value gain(Piece p, Square to) const; @@ -74,4 +74,16 @@ private: const int HistoryMax = 50000 * OnePly; +//// +//// Inline functions +//// + +inline int History::value(Piece p, Square to) const { + return history[p][to]; +} + +inline Value History::gain(Piece p, Square to) const { + return Value(maxStaticValueDelta[p][to]); +} + #endif // !defined(HISTORY_H_INCLUDED)