Skip to content

zarina86/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Game for fun, guess the words

Installation:

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    

How to execute:

Run the following command:

bundle exec ruby hangman.rb

How to add new words:

You can add new words to the words.txt file.

The game rules:

  1. The program asks player to guess the word and shows how many letters it has.
  2. Player/gamer has 7 tries to figure out the word.
  3. Player types letters one by one.
  4. For each letter the player guesses wrong the gallows will be drawn.
  5. If player guessed the full word he/she won.
  6. If the player guesses a correct letter,the program shows how many times and where this letter appears in the word.
  7. If player didn't guess the letter the program counts as a mistake.

About

Game for fun, guess the words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages