summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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)
}
})