diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-26 18:29:42 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-26 18:29:42 -0500 |
| commit | 99e3497414754fe6a333d87e5f6a2a716e5f073a (patch) | |
| tree | 27e264e4f20f22cec0d7602c009d3f5f588e6ce9 /src/ct1986.c | |
| parent | 9d6c1abfcf65c18d13eb6be386fb8175018e0950 (diff) | |
Small oversight
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); } } |
