X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=b59b0e93ba33a469419a9dbbfab8ecbad3eb6c6b;hp=6fbd8be1387fc46ce277a03f29a1f2442171ac19;hb=e0504ab876a997321102f040ab88203cb893db12;hpb=057d710fc2f23b63b574122f2609e03f58d2e494 diff --git a/src/movepick.h b/src/movepick.h index 6fbd8be1..b59b0e93 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -38,9 +38,6 @@ /// different origin but same destination and piece will be considered identical. template struct Stats { - - static const Value Max = Value(1 << 28); - const T* operator[](Piece pc) const { return table[pc]; } T* operator[](Piece pc) { return table[pc]; } void clear() { std::memset(table, 0, sizeof(table)); } @@ -59,12 +56,13 @@ private: }; typedef Stats MoveStats; -typedef Stats HistoryStats; -typedef Stats CounterMoveStats; +typedef Stats CounterMoveStats; typedef Stats CounterMoveHistoryStats; struct FromToStats { + static const Value Max = Value(1 << 28); + Value get(Color c, Move m) const { return table[c][from_sq(m)][to_sq(m)]; } void clear() { std::memset(table, 0, sizeof(table)); } void update(Color c, Move m, Value v) {