X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=07a1e2102abd7a923ddbc0bbb98a055ada85ea19;hp=b50a023b557c3aad61691721c638c1df7b6ee68a;hb=66d5c13a88f041247adf2ba62acdf936a6d6224e;hpb=b884351cc70bb500c0b411982b4aded30e89acc1 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b50a023b..07a1e210 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -436,21 +436,6 @@ Value do_evaluate(const Position& pos, EvalInfo& ei, int threadID) { } // namespace -/// quick_evaluate() does a very approximate evaluation of the current position. -/// It currently considers only material and piece square table scores. Perhaps -/// we should add scores from the pawn and material hash tables? - -Value quick_evaluate(const Position &pos) { - - assert(pos.is_ok()); - - static const ScaleFactor sf[2] = {SCALE_FACTOR_NORMAL, SCALE_FACTOR_NORMAL}; - - Value v = scale_by_game_phase(pos.value(), MaterialInfoTable::game_phase(pos), sf); - return (pos.side_to_move() == WHITE ? v : -v); -} - - /// init_eval() initializes various tables used by the evaluation function void init_eval(int threads) {