X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=dd9e45b92e33b3ad606b6c10a40294fa77349058;hp=c0f087ff5a95fdb4174110efe86372de56e25ade;hb=aa86d81f79a92a5a050f73e1443190e53aa9f2ed;hpb=0b9b34655f2522408f036f79b7f1a01c71a6dedd diff --git a/src/search.cpp b/src/search.cpp index c0f087ff..dd9e45b9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -373,7 +373,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move, { Move bookMove; if (get_option_value_string("Book File") != OpeningBook.file_name()) - OpeningBook.open("book.bin"); + OpeningBook.open(get_option_value_string("Book File")); bookMove = OpeningBook.get_move(pos); if (bookMove != MOVE_NONE) @@ -1142,9 +1142,6 @@ namespace { search_pv(pos, ss, alpha, beta, depth-2*OnePly, ply, threadID); ttMove = ss[ply].pv[ply]; tte = TT.retrieve(pos.get_key()); - - // If tte->move() != MOVE_NONE then it equals ttMove - assert(!(tte && tte->move()) || tte->move() == ttMove); } // Initialize a MovePicker object for the current position, and prepare @@ -1435,7 +1432,7 @@ namespace { // Go with internal iterative deepening if we don't have a TT move if (UseIIDAtNonPVNodes && ttMove == MOVE_NONE && depth >= 8*OnePly && - evaluate(pos, ei, threadID) >= beta - IIDMargin) + !isCheck && evaluate(pos, ei, threadID) >= beta - IIDMargin) { search(pos, ss, beta, Min(depth/2, depth-2*OnePly), ply, false, threadID); ttMove = ss[ply].pv[ply]; @@ -2471,7 +2468,6 @@ namespace { assert(!pos.move_is_check(m)); assert(!pos.move_is_capture_or_promotion(m)); assert(!pos.move_is_passed_pawn_push(m)); - assert(d >= OnePly); Square mfrom, mto, tfrom, tto;