]> git.sesse.net Git - stockfish/blobdiff - src/history.h
Revert "Remove pointless gcc flag when generating dependencies"
[stockfish] / src / history.h
index 37a00266d263554556320bf6bae3d5e50ed1b9cc..b12169471842a50a6b85be1314082646462f1062 100644 (file)
@@ -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 from, Square to, Value delta);
+  Value gain(Piece p, Square from, Square to) const;
 
 private:
   int history[16][64];  // [piece][square]
+  int maxStaticValueDelta[16][64][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)