Skip to content

Commit 665b231

Browse files
Fix issue where it was generating invalid ponder move (warning from cutechess testing).
1 parent c9547cd commit 665b231

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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.22"
23+
#define VERSION "11.23"
2424

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

src/search_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ void *iterative_deepening(void *pv_game)
233233
// collect best and ponder moves
234234
if (game->is_main_thread) {
235235
game->search.best_move = game->pv_line.line[0][0];
236-
game->search.ponder_move = game->pv_line.line[0][1];
236+
if (game->pv_line.size[0] > 1) {
237+
game->search.ponder_move = game->pv_line.line[0][1];
238+
}
237239
}
238240

239241
return NULL;

0 commit comments

Comments
 (0)