diff options
Diffstat (limited to 'src/ct1986.c')
| -rw-r--r-- | src/ct1986.c | 4 |
1 files 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); } } |
