]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
simplify logic for history based pruning
[stockfish] / src / movepick.h
index ee7cf4a445dd257cc39160fd135a53f85e1ac23e..ef3be6c240f8d553b42c68756e48fa512b5bdf3d 100644 (file)
@@ -66,6 +66,7 @@ struct Stats {
   const T* operator[](Piece pc) const { return table[pc]; }
   T* operator[](Piece pc) { return table[pc]; }
   void clear() { std::memset(table, 0, sizeof(table)); }
+  void fill(const Value& v) { std::fill(&table[0][0], &table[PIECE_NB-1][SQUARE_NB-1]+1, v); };
   void update(Piece pc, Square to, Move m) { table[pc][to] = m; }
   void update(Piece pc, Square to, Value v) {