Skip to content

Commit

Permalink
Do not generate moves for prunable nodes in qsearch - #25
Browse files Browse the repository at this point in the history
Do not generate moves for prunable nodes in qsearch

STC:
ELO   | 31.63 +- 12.65 (95%)
SPRT  | 10.0+0.10s Threads=1 Hash=16MB
LLR   | 2.95 (-2.94, 2.94) [0.00, 5.00]
GAMES | N: 1696 W: 570 L: 416 D: 710

Bench: 4827524
  • Loading branch information
SzilBalazs authored Jul 18, 2023
2 parents f233470 + 1fa426d commit e898c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search/search_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,15 @@ namespace search {
return UNKNOWN_SCORE;
}

MoveList<true> move_list(board, core::NULL_MOVE, history, 0);

Score static_eval = nnue.evaluate(board.get_stm());

if (static_eval >= beta)
return beta;
if (static_eval > alpha)
alpha = static_eval;

MoveList<true> move_list(board, core::NULL_MOVE, history, 0);

while (!move_list.empty()) {
core::Move move = move_list.next_move();

Expand Down

0 comments on commit e898c8f

Please sign in to comment.