-bool History::ok_to_prune(Piece p, Move m, Depth d) const {
- assert(piece_is_ok(p));
- assert(move_is_ok(m));
+void History::set_gain(Piece p, Square to, Value delta)
+{
+ if (delta >= maxStaticValueDelta[p][to])
+ maxStaticValueDelta[p][to] = delta;
+ else
+ maxStaticValueDelta[p][to]--;
+}