Skip to content

Commit

Permalink
ablation: no internal iterative deepening
Browse files Browse the repository at this point in the history
test r15
  • Loading branch information
dhbloo committed Jul 26, 2024
1 parent 49a8c22 commit b1ea709
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,19 +899,19 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
if (depth <= 0)
return vcfsearch<Rule, NT>(board, ss, alpha, beta);

if (depth >= IID_DEPTH && !ttMove) {
depth -= IIR_REDUCTION;

// We only need best move from the iid search, so we just discard its result
search<Rule, NT>(board, ss, alpha, beta, depth - iidDepthReduction<Rule>(depth), cutNode);

// Get best move from transposition table, which should be just written by the search.
Value tmpEval;
bool tmpIsPv;
Bound tmpBound;
int tmpDepth;
ttHit = TT.probe(posKey, ttValue, tmpEval, tmpIsPv, tmpBound, ttMove, tmpDepth, ss->ply);
}
//if (depth >= IID_DEPTH && !ttMove) {
// depth -= IIR_REDUCTION;

// // We only need best move from the iid search, so we just discard its result
// search<Rule, NT>(board, ss, alpha, beta, depth - iidDepthReduction<Rule>(depth), cutNode);

// // Get best move from transposition table, which should be just written by the search.
// Value tmpEval;
// bool tmpIsPv;
// Bound tmpBound;
// int tmpDepth;
// ttHit = TT.probe(posKey, ttValue, tmpEval, tmpIsPv, tmpBound, ttMove, tmpDepth, ss->ply);
//}

// When opponent is doing A_FIVE attack, search starts from here
moves_loop:
Expand Down

0 comments on commit b1ea709

Please sign in to comment.