Code Monkey home page Code Monkey logo

telephone's Introduction

Let's Play Gopher Telephone!

This is the classic game of Telephone, played out by helpful gophers.

Travis Build Status

Rules

  • All gophers get in a line, sorted by their name.
  • The first gopher thinks up a really special message and tells it to the next gopher.
  • Each gopher repeats the message to the next in line.
  • When the last gopher receives the message, she tells everyone the message.

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?! ๐Ÿ˜Ž

Gophers

  • Default: This gopher is quite boring and repeats the message exactly as received. Everyone starts out with this gopher so that they have a working game to play with.
  • Emoji Gopher: This gopher โค๏ธ emoji, and replaces well-known words with their emoji equivalent. For example, it replaces the word love with โค๏ธ.
  • Chuck Norris Gopher: This gopher is obsessed with Chuck Norris, and instead of relaying the message received, sends Chuck Norris quotes.
  • Data Science Gopher: Data is awesome! This gopher queries the SQLite database provided in this repository and sends interesting gopher facts.
  • CSI Cyber Gopher: Lookout criminals, CSI gopher can read the files on your computer, searching for clues to solve the case. Pick words from the message received, and use it to lookup relevant text from the sample files in this repository.

โœ… You can find solutions for the gophers in the solutions branch.

Get the Game

go get -u github.com/ladygogo/telephone
cd $GOPATH/github.com/ladygogo/telephone
go build

Play Telephone

# 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`

Run Tests

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

telephone's People

Contributors

carolynvs avatar schwerdt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.