Skip to content

Commit 7d12360

Browse files
Increase null move base depth from 4 to 5
Score of tucanoNEW vs tucanoOLD: 1024 - 947 - 2490 [0.509] 4461 Elo difference: 6.0 +/- 6.8, LOS: 95.9 %, DrawRatio: 55.8 % SPRT: llr 2.95 (100.2%), lbound -2.94, ubound 2.94 - H1 was accepted
1 parent 99a17d8 commit 7d12360

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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.26"
23+
#define VERSION "11.27"
2424

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

src/search.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ int search(GAME *game, UINT incheck, int alpha, int beta, int depth, MOVE exclud
126126
return eval_score - STAT_NULL_MARGIN[depth];
127127
}
128128

129-
// TODO test depth - 5
130129
// Null move heuristic: side to move has advantage that even allowing an extra move to opponent, still keeps advantage.
131130
if (has_pieces(&game->board, turn) && !has_recent_null_move(&game->board)) {
132131
// null move search
133132
if (depth >= 2 && eval_score >= beta) {
134133
MOVE last_move = get_last_move_made(&game->board);
135-
int null_depth = depth - 4 - ((depth - 4) / 4) - MIN(3, (eval_score - beta) / 200) - (move_is_quiet(last_move) ? 0 : 1);
134+
int null_depth = depth - 5 - ((depth - 4) / 4) - MIN(3, (eval_score - beta) / 200) - (move_is_quiet(last_move) ? 0 : 1);
136135
make_move(&game->board, NULL_MOVE);
137136
int null_score = -search(game, FALSE, -beta, -beta + 1, null_depth, MOVE_NONE);
138137
undo_move(&game->board);

0 commit comments

Comments
 (0)