diff options
| author | demo <demo@antix1> | 2026-05-25 10:29:09 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-25 10:29:09 -0400 |
| commit | a7c887d263cffe80b65971dfefeab60c464eebe4 (patch) | |
| tree | 25f9b0b5ef566a1ac46bd4b998b8ae2abad59ac9 | |
| parent | 67023f150341b118c0e26c434be6639116914ee3 (diff) | |
feat: print b.hits when control reaches the main goroutine
| -rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,8 @@ func game(numSecs, numPlayers int) { loop: for b := range players[len(players)-1] { + fmt.Printf("HITS: %d\n", b.hits) + select { case players[0] <- b: case <-t: |
