Skip to content

Commit 43ba000

Browse files
Add capture pruning based on SEE heuristic.
10s+0.1 Score of tucanoNEW vs tucanoOLD: 497 - 417 - 1083 [0.520] 1997 Elo difference: 13.9 +/- 10.3, LOS: 99.6 %, DrawRatio: 54.2 % SPRT: llr 2.97 (100.7%), lbound -2.94, ubound 2.94 - H1 was accepted 60s+0.6 Score of tucanoNEW vs tucanoOLD: 658 - 583 - 1648 [0.513] 2889 Elo difference: 9.0 +/- 8.3, LOS: 98.3 %, DrawRatio: 57.0 % SPRT: llr 2.96 (100.5%), lbound -2.94, ubound 2.94 - H1 was accepted
1 parent e094f8b commit 43ba000

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define ENGINE "Tucano"
2222
#define AUTHOR "Alcides Schulz"
23-
#define VERSION "11.18"
23+
#define VERSION "11.19"
2424

2525
void develop_workbench(void);
2626
double bench(int depth, int print);

src/search.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ int search(GAME *game, UINT incheck, int alpha, int beta, int depth, MOVE exclud
260260
}
261261
}
262262

263+
if (move_count > 5 && !extensions && !incheck && depth < 5 && !move_is_quiet(move)) {
264+
if (best_score + 100 * depth + see_move(&game->board, move) <= alpha) {
265+
continue;
266+
}
267+
}
268+
263269
// Make move and search new position.
264270
make_move(&game->board, move);
265271

0 commit comments

Comments
 (0)