#if !defined(HISTORY_H_INCLUDED)
#define HISTORY_H_INCLUDED
-#include "types.h"
-#include <cstring>
#include <algorithm>
+#include <cstring>
+
+#include "types.h"
/// The History class stores statistics about how often different moves
/// have been successful or unsuccessful during the current search. These
static const Value MaxValue = Value(2000);
private:
- Value history[16][64]; // [piece][to_square]
- Value maxGains[16][64]; // [piece][to_square]
+ Value history[PIECE_NB][SQUARE_NB];
+ Value maxGains[PIECE_NB][SQUARE_NB];
};
inline void History::clear() {