Telephone Gophers Workshop
This is the classic game of Telephone, played out by helpful gophers.
If every gopher faithfully repeats the message, then the game isn't terribly fun. However, if each gopher has a slighty different personality, altering the message in unique ways, then the final message can be quite different from the original. Haha, things that are different from what we expect are funny! Get it?!
love
with .You can find solutions for the gophers in the solutions branch.
go get -u github.com/ladygogo/telephone
cd $GOPATH/github.com/ladygogo/telephone
go build
# open a terminal and run the following
./telephone -name gopher1
# open another terminal in the same directory and run the following
./telephone -name gopher2
Once the game is running, you can type messages into the console and it should be repeated to the other connected game instances.
To stop the game, press CTRL + C
.
Once you have implemented a gopher, you can reload the game as that gopher with -gopher
flag
./telephone -name geekygirl5 -gopher emoji
The pre-defined gophers types are:
* `emoji`
* `norris`
* `csi`
* `data`
Some of the gophers come with tests which verify your implementation.
Run a single test
go test -v -run TestEmoji ./gophers
Run all tests
go test -v ./gophers