Convert History table H in a local variable

This is a first step for future patches and in
any case seems a nice thing to do.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-06-02 09:57:15 +01:00
parent e1ed67aacb
commit c1b60269a2
5 changed files with 14 additions and 12 deletions

View File

@@ -26,6 +26,7 @@
////
#include "depth.h"
#include "history.h"
#include "lock.h"
#include "position.h"
@@ -64,7 +65,7 @@ public:
PH_STOP
};
MovePicker(const Position& p, bool pvnode, Move ttm, Depth d, SearchStack* ss = NULL);
MovePicker(const Position& p, bool pvnode, Move ttm, Depth d, const History& h, SearchStack* ss = NULL);
Move get_next_move();
Move get_next_move(Lock& lock);
int number_of_moves() const;
@@ -80,6 +81,7 @@ private:
Move pick_move_from_list();
const Position& pos;
const History& H;
Move ttMove, mateKiller, killer1, killer2;
Bitboard pinned, dc;
MoveStack moves[256], badCaptures[64];