Convert killers to a vector

Add infrastructure to threat killer moves as a vector,
this will allow us to easily parametrize the number of
killer moves, instead of hardcode this value to two as is now.

This patch just add the infrastructure, no functional
change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-11-15 17:56:22 +01:00
parent a7227ac26f
commit 93bc05cf69
6 changed files with 64 additions and 50 deletions

View File

@@ -66,12 +66,12 @@ namespace {
/// move ordering is at the current node.
MovePicker::MovePicker(const Position& p, bool pv, Move ttm,
Move mk, Move k1, Move k2, Depth d, EvalInfo* ei) : pos(p) {
const SearchStack& ss, Depth d, EvalInfo* ei) : pos(p) {
pvNode = pv;
ttMove = ttm;
mateKiller = (mk == ttm)? MOVE_NONE : mk;
killer1 = k1;
killer2 = k2;
mateKiller = (ss.mateKiller == ttm)? MOVE_NONE : ss.mateKiller;
killer1 = ss.killers[0];
killer2 = ss.killers[0];
depth = d;
movesPicked = 0;
numOfMoves = 0;