From 3866d339a193146b02e1ad6e94a59b323a9761f5 Mon Sep 17 00:00:00 2001 From: "Brandon C. Irizarry" Date: Thu, 23 Apr 2026 16:42:37 -0400 Subject: feat: clarify the printouts --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 92e9b22..f4b837b 100644 --- a/main.go +++ b/main.go @@ -56,14 +56,14 @@ func game(numPlayers, faces int) { for { score++ outcome := throwDie(faces) - fmt.Printf("Player %d threw a %d\n", id, outcome) if outcome == winningNumber { - fmt.Printf("Player %d threw the winning number! Their score is %d\n", id, score) + fmt.Printf("Player %d threw a %d: the winning number! Their score is %d\n", id, winningNumber, score) finishedPlayers <- Player{id: id, score: score} return } + fmt.Printf("Player %d threw a %d\n", id, outcome) time.Sleep(1 * time.Second) } }) -- cgit v1.2.3