Skip to content

LHW99/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

A hangman game built using Ruby 2.7.0 that can be played from the terminal.

Getting started

Main .rb files are in /lib directory.

In /lib/mainmenu.rb, change the first line of code to properly direct to your local hangman.rb file.

Playing the game

Launch the game from the terminal

ruby mainmenu.rb

You can start a new game or load a saved one.

ss1

If you start a new game, you will be presented with the game interface. It will show you how many letters the secret work is, what letters have been, guessed, and how many tries your have left.

ss2

The game ends when you guess the word or fail to do so. You will be prompted to play again if you'd like.

ss3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages