Skip to content

Commit e407921

Browse files
Additional extension when score is better.
60s+0.6 Score of tucanoNEW vs tucanoOLD: 1024 - 948 - 2556 [0.508] 4528 Elo difference: 5.8 +/- 6.7, LOS: 95.6 %, DrawRatio: 56.4 % SPRT: llr 2.95 (100.3%), lbound -2.94, ubound 2.94 - H1 was accepted
1 parent 43ba000 commit e407921

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
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.19"
23+
#define VERSION "11.20"
2424

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

src/search.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,21 @@ int search(GAME *game, UINT incheck, int alpha, int beta, int depth, MOVE exclud
209209
int reduced_beta = trans_score - 4 * depth;
210210
int singular_score = search(game, incheck, reduced_beta - 1, reduced_beta, depth / 2, move);
211211
if (game->search.abort) return 0;
212-
if (singular_score < reduced_beta) {
213-
extensions = 1;
212+
if (singular_score + 50 < reduced_beta) {
213+
extensions = 2;
214214
}
215215
else {
216-
if (reduced_beta >= beta) {
217-
return reduced_beta;
216+
if (singular_score < reduced_beta) {
217+
extensions = 1;
218218
}
219219
else {
220-
if (trans_score <= alpha || trans_score >= beta) {
221-
reductions = 1;
220+
if (reduced_beta >= beta) {
221+
return reduced_beta;
222+
}
223+
else {
224+
if (trans_score <= alpha || trans_score >= beta) {
225+
reductions = 1;
226+
}
222227
}
223228
}
224229
}

0 commit comments

Comments
 (0)