mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
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:
@@ -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]
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user