summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index c812764..4431dd0 100644
--- a/main.go
+++ b/main.go
@@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
+ "log"
"time"
)
@@ -30,6 +31,8 @@ func game(numSecs int) {
}
func player(name string, table chan Ball) {
+ log.Printf("started player %s", name)
+
for {
ball := <-table
ball.hits++
@@ -40,4 +43,7 @@ func player(name string, table chan Ball) {
table <- ball
}
+
+ // FIXME: this is currently unreachable.
+ log.Printf("finished player %s", name)
}