X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=0ef2c89bb0d2b30ab0f23111106df0179eb061bd;hp=ec8b15541ede4194794f22ee9439ddd601eaad43;hb=c3d2e6aba981ecc0caf82f81a1d44e8c4954e151;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c diff --git a/src/movepick.h b/src/movepick.h index ec8b1554..0ef2c89b 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -60,7 +60,7 @@ private: /// Entries are stored using only the moving piece and destination square, hence /// two moves with different origin but same destination and piece will be /// considered identical. -template +template struct Stats { const T* operator[](Piece pc) const { return table[pc]; } T* operator[](Piece pc) { return table[pc]; } @@ -71,7 +71,7 @@ struct Stats { if (abs(int(v)) >= 324) return; - table[pc][to] -= table[pc][to] * abs(int(v)) / (CM ? 936 : 324); + table[pc][to] -= table[pc][to] * abs(int(v)) / 936; table[pc][to] += int(v) * 32; } @@ -80,7 +80,7 @@ private: }; typedef Stats MoveStats; -typedef Stats CounterMoveStats; +typedef Stats CounterMoveStats; typedef Stats CounterMoveHistoryStats;