diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } }) |
