The Odin Project Assignment: "Build a Hangman Game in Ruby"
Hangman is a paper and pencil guessing game for two or more players. One player thinks of a word, phrase or sentence and the other tries to guess it by suggesting letters or numbers, within a certain number of guesses. Please see Wikipedia article for extended info.
Save Hangman folder in your chosen location
And then inside of it execute:
$ bundle
To play the game run:
ruby Hangman-game\run_game\play.rb
At the start of the game please state your name
After that, you can choose to load a saved game. There is one available instant of the game where you can check almost fully answered the puzzle. Only one letter is missing and it is letter "d"
Regardless of your choice, you are now able to guess next letter of the given password. All letters in the password are small_case letters. Originally you are given 12 guesses to find out the password.
After guessing the letter, you are asked if you would like to save the game. You can do this by inputting "y" on the console.
Then you can also try to answer the riddle right in that moment but be aware that if unlucky, you will hang..
If you guess all the letters correctly you win and you can live.. for now!
Let me know if you find a bug!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
* See license.txt for usage details.