From 2b256bab45712e5f0ba883bb40a99ab29682defc Mon Sep 17 00:00:00 2001 From: "Brandon C. Irizarry" Date: Thu, 23 Apr 2026 16:39:24 -0400 Subject: feat: log when the winning number is thrown --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') diff --git a/main.go b/main.go index 29e07cf..beae39f 100644 --- a/main.go +++ b/main.go @@ -58,6 +58,7 @@ func game(numPlayers, faces int) { 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) scores <- Score{id: id, score: score} return } -- cgit v1.2.3