X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=ef3be6c240f8d553b42c68756e48fa512b5bdf3d;hp=ee7cf4a445dd257cc39160fd135a53f85e1ac23e;hb=ced29248c93de7fc5a4e284807f8f052006e647c;hpb=2d96e8fbe9b683ff320a197715155381139c7664 diff --git a/src/movepick.h b/src/movepick.h index ee7cf4a4..ef3be6c2 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -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) {