diff options
| author | Brandon C. Irizarry <brandon.irizarry@gmail.com> | 2026-04-23 16:39:24 -0400 |
|---|---|---|
| committer | Brandon C. Irizarry <brandon.irizarry@gmail.com> | 2026-04-23 16:39:24 -0400 |
| commit | 2b256bab45712e5f0ba883bb40a99ab29682defc (patch) | |
| tree | aa3274c61789c99a038eb4d50984389fd6de216f | |
| parent | 501b9e7bbdff00b82c588913dab2155c03457345 (diff) | |
feat: log when the winning number is thrown
| -rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 } |
