Integrate gains table in History

This will be useful to use gains table in move
ordering along with history table.

No functional change and big code remove.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-01-27 11:19:56 +01:00
parent 54b3d44194
commit f37741cc83
6 changed files with 26 additions and 122 deletions

View File

@@ -28,6 +28,7 @@
#include "depth.h"
#include "move.h"
#include "piece.h"
#include "value.h"
////
@@ -49,9 +50,12 @@ public:
void success(Piece p, Square to, Depth d);
void failure(Piece p, Square to, Depth d);
int move_ordering_score(Piece p, Square to) const;
void set_gain(Piece p, Square from, Square to, Value delta);
Value gain(Piece p, Square from, Square to) const;
private:
int history[16][64]; // [piece][square]
int maxStaticValueDelta[16][64][64]; // [piece][from_square][to_square]
};