Skip to content

Instantly share code, notes, and snippets.

@tiltedlistener
Created October 7, 2015 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiltedlistener/f272434825c0cc8ab5a4 to your computer and use it in GitHub Desktop.
Save tiltedlistener/f272434825c0cc8ab5a4 to your computer and use it in GitHub Desktop.
Prep code for Hangman
/**
* Prep Code
*/
// PICK A WORD
// LOOP
// LET THE PLAYER GUESS
// IF GUESS == TRUE
// CHECK IF WORD IS COMPLETE
// YOU WIN
// ELSE
// CHECK IF OUT OF GUESSES
// YOU LOSE
// ELSE
// SUBTRACT A GUESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment