Game for fun, guess the words
Install Ruby by following the instructions link
Clone repository to your computer
git clone
Move to cloned project's directory
cd hangman
Install bundler to your project
gem install bundler
Install required dependencies
bundle install
bundle exec ruby hangman.rb
You can add new words to the words.txt file.
- The program asks player to guess the word and shows how many letters it has.
- Player/gamer has 7 tries to figure out the word.
- Player types letters one by one.
- For each letter the player guesses wrong the gallows will be drawn.
- If player guessed the full word he/she won.
- If the player guesses a correct letter,the program shows how many times and where this letter appears in the word.
- If player didn't guess the letter the program counts as a mistake.