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