Skip to content

Instantly share code, notes, and snippets.

@erochest
Created November 28, 2012 19:03
Show Gist options
  • Save erochest/4163299 to your computer and use it in GitHub Desktop.
Save erochest/4163299 to your computer and use it in GitHub Desktop.
Specification for Jotto game

This will be a Jotto game for one player. See the Wikipedia article for details on the rules.

A typical interaction might look like this:

I'm thinking of a five-letter word. Guess what it is.
Guess 1 of 10: think
1 jot.
Guess 2 of 10: burnt
2 jots.
Guess 3 of 10: xyzzy
Nothing. Try again.
....
You're out of turns! Better luck next time.
(or)
That's it! Great guessing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment