summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-25 10:29:09 -0400
committerdemo <demo@antix1>2026-05-25 10:29:09 -0400
commita7c887d263cffe80b65971dfefeab60c464eebe4 (patch)
tree25f9b0b5ef566a1ac46bd4b998b8ae2abad59ac9
parent67023f150341b118c0e26c434be6639116914ee3 (diff)
feat: print b.hits when control reaches the main goroutine
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 32ebfce..2b0310f 100644
--- a/main.go
+++ b/main.go
@@ -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: