From 55b45cc666c2ef883efe3831b96ac40623622582 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Tue, 26 Jan 2021 18:29:42 -0500 Subject: Small oversight --- src/ct1986.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ct1986.c b/src/ct1986.c index ca22f15..213f3ff 100644 --- a/src/ct1986.c +++ b/src/ct1986.c @@ -87,10 +87,10 @@ new_game(uint8_t size) { static uint8_t perc; inline void -negamax_display_progress(const uint8_t depth) { +negamax_display_progress(const uint8_t depth, const uint32_t length) { if (depth == 0) { perc++; - lcd_printf_line(L_OVERWRITE, "Computing: %d%%", perc*4); + lcd_printf_line(L_OVERWRITE, "Computing: %d%%", (perc*100)/length); } } -- cgit v1.2.3