summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-08 06:17:04 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-08 06:17:04 +0300
commitd9253f1880f4469dace7431acf3ed57504579537 (patch)
tree1f33610052d400044fbd2fc38ae4e719c1bbd924
parent8653b86cae4c9879a9ba8fedc43c141667c93a2d (diff)
downloadc-chess-d9253f1880f4469dace7431acf3ed57504579537.tar.gz
feat: display moves while deepening
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3df8e2b..a6ef917 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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++;
}