Skip to content

Commit b1b2e04

Browse files
Avoid razoring when there is move from transposition table.
10s+0.1 Score of tucanoNEW vs tucanoOLD: 2519 - 2238 - 5243 [0.514] 10000 Elo difference: 9.8 +/- 4.7, LOS: 100.0 %, DrawRatio: 52.4 % 60s+0.6 Score of tucanoNEW vs tucanoOLD: 922 - 843 - 2133 [0.510] 3898 Elo difference: 7.0 +/- 7.3, LOS: 97.0 %, DrawRatio: 54.7 % SPRT: llr 2.95 (100.3%), lbound -2.94, ubound 2.94 - H1 was accepteded
1 parent 9ce5a2c commit b1b2e04

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/main.c

Lines changed: 5 additions & 2 deletions
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.24"
23+
#define VERSION "11.25"
2424

2525
void develop_workbench(void);
2626
double bench(int depth, int print);
@@ -626,7 +626,10 @@ void generate_plain_files(char *pgn_file_list);
626626

627627
void develop_workbench(void)
628628
{
629-
//generate_replay("d:/temp/game0013.pgn", "d:/temp/replay0013.pgn");
629+
generate_replay("D:/Projetos/YoutubeChanels/TucanoTestGames/GamesDone/game0013_ExposedKing.pgn",
630+
"D:/Projetos/YoutubeChanels/TucanoTestGames/GamesDone/replay0013.txt");
631+
//tnn_generate_menu();
632+
//extract_good_games("d:/temp/a.pgn");
630633
}
631634

632635
//END

src/nnue_gen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ void tnn_generate_menu()
264264
char *to_file_mask_tnn = "d:/temp/data/data_d%d_n%d_%04d.tnn";
265265
char *to_file_mask_plain = "d:/temp/data/data_d%d_n%d_%04d.plain";
266266
int total_positions = 100000000;
267-
int max_depth = 8;
267+
int max_depth = 10;
268268
int max_nodes = 0;
269269
#else
270270
char *to_file_mask_tnn = "./data/data_d%d_n%d_%04d.tnn";
271271
char *to_file_mask_plain = "./data/data_d%d_n%d_%04d.plain";
272272
int total_positions = 100000000;
273-
int max_depth = 8;
273+
int max_depth = 10;
274274
int max_nodes = 0;
275275
#endif
276276
char resp[100];

src/search.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int search(GAME *game, UINT incheck, int alpha, int beta, int depth, MOVE exclud
114114
if (!pv_node && !incheck && !singular_move_search) {
115115

116116
// Razoring: eval score + margin is lower than alpha, so just performs quiesce search and avoid regular search
117-
if (depth < RAZOR_DEPTH && eval_score + RAZOR_MARGIN[depth] < alpha && !is_mate_score(alpha)) {
117+
if (depth < RAZOR_DEPTH && eval_score + RAZOR_MARGIN[depth] < alpha && !is_mate_score(alpha) && trans_move == MOVE_NONE) {
118118
int razor_margin = alpha - RAZOR_MARGIN[depth];
119119
int score = quiesce(game, FALSE, razor_margin, razor_margin + 1, 0);
120120
if (game->search.abort) return 0;

0 commit comments

Comments
 (0)