From eb45a34b4a0881b227cb1a461ca1fcb77e593865 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 10 Jun 2020 13:52:34 +0000 Subject: Changed score displays. --- csol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/csol.c b/csol.c index 4afa853..3ff6571 100644 --- a/csol.c +++ b/csol.c @@ -102,12 +102,13 @@ static const char *GetScore(int game) if (score[game].played == 0) { - strcpy(buff, "0 played, 0.00% won"); + strcpy(buff, "0 played, 0 won, 0.00%"); } else { - snprintf(buff, sizeof buff, "%lu played, %.2f%% won", + snprintf(buff, sizeof buff, "%lu played, %lu won, %.2f%%", score[game].played, + score[game].won, (double)score[game].won / (double)score[game].played * 100.0); } -- cgit v1.2.3