diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-09-08 06:17:04 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-09-08 06:17:04 +0300 |
commit | d9253f1880f4469dace7431acf3ed57504579537 (patch) | |
tree | 1f33610052d400044fbd2fc38ae4e719c1bbd924 | |
parent | 8653b86cae4c9879a9ba8fedc43c141667c93a2d (diff) | |
download | c-chess-d9253f1880f4469dace7431acf3ed57504579537.tar.gz |
feat: display moves while deepening
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -651,7 +651,10 @@ Move iterative_deepening(int* board, int color, long hash, Transposition* transp return best_move; } - printf("Done (evaluation %.2f) [%i positions analyzed]\n", (double)move.value / 10, metrics); + char move_in_notation[] = "xyXY"; + index_to_notation(move.origin, move_in_notation); + index_to_notation(move.destination, move_in_notation + 2); + printf("Done (%s with evaluation %.2f) [%i positions analyzed]\n", move_in_notation, (double)move.value / 10, metrics); depth++; } |