1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Different searchedMoves system

After 8751 games on russian cluster
Mod- Orig: 1426 - 1323 - 6002  ELO +4 (+- 2.9) LOS 86%

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2011-01-17 01:29:44 +02:00 committed by Marco Costalba
parent 79b1a7417f
commit a8f457d425

View file

@ -793,7 +793,7 @@ namespace {
Value refinedValue, nullValue, futilityBase, futilityValueScaled; // Non-PV specific
bool isPvMove, isCheck, singleEvasion, singularExtensionNode, moveIsCheck, captureOrPromotion, dangerous;
bool mateThreat = false;
int moveCount = 0;
int moveCount = 0, playedMoveCount = 0;
int threadID = pos.thread();
SplitPoint* sp = NULL;
@ -1027,7 +1027,7 @@ split_point_start: // At split points actual search starts from here
else if (move == excludedMove)
continue;
else
movesSearched[moveCount++] = move;
moveCount++;
if (Root)
{
@ -1142,6 +1142,9 @@ split_point_start: // At split points actual search starts from here
// Step 13. Make the move
pos.do_move(move, st, ci, moveIsCheck);
if (!SpNode && !captureOrPromotion)
movesSearched[playedMoveCount++] = move;
// Step extra. pv search (only in PV nodes)
// The first move in list is the expected PV
if (isPvMove)
@ -1321,7 +1324,7 @@ split_point_start: // At split points actual search starts from here
if ( bestValue >= beta
&& !pos.move_is_capture_or_promotion(move))
{
update_history(pos, move, depth, movesSearched, moveCount);
update_history(pos, move, depth, movesSearched, playedMoveCount);
update_killers(move, ss->killers);
}
}
@ -1833,7 +1836,6 @@ split_point_start: // At split points actual search starts from here
assert(m != move);
if (!pos.move_is_capture_or_promotion(m))
H.update(pos.piece_on(move_from(m)), move_to(m), -bonus);
}
}
@ -1844,12 +1846,12 @@ split_point_start: // At split points actual search starts from here
void update_killers(Move m, Move killers[]) {
if (m == killers[0])
return;
if (m != killers[0])
{
killers[1] = killers[0];
killers[0] = m;
}
}
// update_gains() updates the gains table of a non-capture move given