- Display ascii art depictions of lives-left after clearing terminal when displaying validation messages and the like, unless zero lives-lost.
- Create a method for building path and displaying ascii images. (DRY)
- ASCII-art image on victory.
- ASCII-art image on game over.
- ASCII-art to display lives left.
- Added ASCII-art title to welcome screen with tty-font gem.
- Screen/terminal clears throughout the game to display only relevant data.
- Points tally for multiple games.
- Allow for words with spaces
- Allow for words with special characters / punctuation. (punctuation should be filled-in for the user)
- Play sounds after user input based on result of that input.
By Jim Farrugia and Natasha Khatri
https://github.com/Jimfarrugia/ruby_hangman
Hangman is an educational word guessing game to be played in a command-line interface. The game has been created with Ruby.
The purpose of Hangman is to provide a fun way of learning vocabulary and testing your general knowledge. This is done by allowing the user to guess the secret word one letter at a time, which can also be helpful for remembering the spelling of new words.
- Start program
- Program greets the user.
- Program prompts user for input if they want to play
- If user enters "No", program exits
- If user enters "Yes, program continues
- Prompts user for username, if nothing entered defaults to "Player"
- Program randomly generates a word for user to guess
- Prompts the user for input of a letter
- Checks user input
- If correct, displays letter in secret word
- If incorrect, displays number of lives left
- User input will loop until:
- All letters are matched in the secret word
- If true, then will display the secret word and victory screen
- There are 0 lives left
- If true, then will display the secret word and game over screen
- All letters are matched in the secret word
- Prompts user if they want to play again
- If user enters "No", program exits
- If user enters "Yes", program will return with new word for user to guess
- Unzip the ruby_hangman folder from the zip file.
- Navigate to
/ruby_hangman/src/in the command-line and type inbundle installand press Enter to install dependancies. - While in the same directory, type
ruby index.rbinto the command-line and press Enter to start the program. - Enter yes or no if you would like to play the game.
- If you enter yes, the program will ask you to enter a username.
- You will see a number of lines
_ _ _ _ _that represent the number of letters in the word you have to guess. - Guess what the word is by entering one letter at a time.
- Each correct letter will be revealed in the word.
- For each incorrect guess, you will lose a life. You only get 7 lives.
- Once you have finished the game, the program will prompt you for a yes or no if you would like to play again.
Game Over and Choosing not to play again

Game Over and Choosing to play again

Winner and Choosing not to play again

Winner and Choosing to play again

Project Plan and Timeline document
Initial pseudocode and text content for app













