An open API service indexing awesome lists of open source software.

https://github.com/kenmeriftw/hangman

The famous Hangman game on Ruby. Try it, buddy!
https://github.com/kenmeriftw/hangman

colorized console-application hangman hangman-game ruby

Last synced: 2 months ago
JSON representation

The famous Hangman game on Ruby. Try it, buddy!

Awesome Lists containing this project

README

        

# colorized_hangman
The famous Hangman game on Ruby. Try it, buddy!

To start playing, you have to have
[ruby-3.0.0](https://github.com/ruby/ruby "The Ruby Programming Language [mirror]") and
[bundler-2.2.14](https://github.com/rubygems/bundler "Manage your Ruby application's gem dependencies]") installed on your machine.

You can clone this repo onto your local machine, make `cd` in the directory and run
```
bundle
```
to install required gems.

Then, run

```
bundle exec ruby hangman.rb
```

You have to guess the hidden word during 7 attempts.
Enter the letter you want to try and you will get a result on the screen.
If the letter was 'correct' (the hidden word include this letter) it will display on the screen in the 'word' string.

![alt text](https://media.giphy.com/media/ZA1SNxndWjZIpXXwmR/giphy.gif)

To add a new hidden words in game you have to open /data/words.txt file and enter a new words in capital letters, every word should be entered in new line.

Enjoy it!