X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhistory.h;h=b1121d85d54ea40f470762e6d2af7ca46990191d;hp=37a00266d263554556320bf6bae3d5e50ed1b9cc;hb=49c50399fe39b7b80ebe1cba1b986e8759633e51;hpb=2161d8b0b3df48db419a25e3bc626c21eb062d75 diff --git a/src/history.h b/src/history.h index 37a00266..b1121d85 100644 --- a/src/history.h +++ b/src/history.h @@ -28,6 +28,7 @@ #include "depth.h" #include "move.h" #include "piece.h" +#include "value.h" //// @@ -49,9 +50,12 @@ public: 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; + void set_gain(Piece p, Square to, Value delta); + Value gain(Piece p, Square to) const; private: int history[16][64]; // [piece][square] + int maxStaticValueDelta[16][64]; // [piece][from_square][to_square] }; @@ -67,7 +71,7 @@ private: /// recently have a bigger importance for move ordering than the moves which /// have been searched a long time ago. -const int HistoryMax = 25000 * OnePly; +const int HistoryMax = 50000 * OnePly; #endif // !defined(HISTORY_H_INCLUDED)