From e90c9419df5ac9bdd831551713c1fee9f92a750f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 31 Aug 2022 04:40:01 +0300 Subject: feat: include heuristic values into transpositions --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 5fa9f8c..deb7d96 100644 --- a/src/main.c +++ b/src/main.c @@ -525,9 +525,7 @@ Move find_best_move(int* board, int color, int depth, int alpha, int beta, int* ? find_best_move(board, 1 - color, depth + 1, alpha, beta, metrics, hash, transposition_table, zobrist_seed).value : compute_score(board, available_moves_count, color); - if (depth < MAX_DEPTH) { - transposition_table[move_hash % TRANSPOSITION_TABLE_SIZE] = move.value; - } + transposition_table[move_hash % TRANSPOSITION_TABLE_SIZE] = move.value; reverse_move(move, captured_piece, board); -- cgit v1.2.3