What is "history pruning"?
Posted: 07 Nov 2005, 13:56
In Fruit's readme file I read some words about "History Pruning". What is this technique about? I could not find any information in search engines here and on CCC...
Please give some links or brief explanation... Reading Fruit's code to understand is not easy for me, it is not well commented...
Please give some links or brief explanation... Reading Fruit's code to understand is not easy for me, it is not well commented...
- Code: Select all
// history pruning
reduced = false;
if (UseHistory && depth >= HistoryDepth && node_type != NodePV) {
if (!in_check && played_nb >= HistoryMoveNb && new_depth < depth) {
ASSERT(best_value!=ValueNone);
ASSERT(played_nb>0);
ASSERT(sort->pos>0&&move==LIST_MOVE(sort->list,sort->pos-1));
value = sort->value; // history score
if (value < HistoryValue) {
ASSERT(value>=0&&value<16384);
ASSERT(move!=trans_move);
ASSERT(!move_is_tactical(move,board));
ASSERT(!move_is_check(move,board));
new_depth--;
reduced = true;
}
}
}