Skip to content

uxpat/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Hangman is a guessing game written in Ruby language. Player tries to guess a pre-defined word by suggesting letters within a certain number of guesses

Rules

When the game starts, the player will guess a letter. If that letter exists in the word then the letter will appear. If the letter doesn't exist in the word then a body part is added to the gallows (head, body, left arm, right arm, left leg, right leg). The player will continue guessing letters until they can either solve the word (or phrase) or all six body parts are on the gallows.

How to run the program

Clone this repository, navigate to the folder with the contents and run the main.rb file in Terminal:

ruby main.rb

About

Hangman game built with Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages