diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-26 18:29:42 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 55b45cc666c2ef883efe3831b96ac40623622582 (patch) | |
| tree | 27e264e4f20f22cec0d7602c009d3f5f588e6ce9 /src | |
| parent | ef65e760347ff695654627934ac347fce4b63511 (diff) | |
Small oversight
Diffstat (limited to 'src')
| -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); } } |
