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!
- Host: GitHub
- URL: https://github.com/kenmeriftw/hangman
- Owner: kenmeriftw
- Created: 2021-02-19T13:44:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-03T20:12:08.000Z (almost 4 years ago)
- Last Synced: 2025-01-27T12:50:00.498Z (4 months ago)
- Topics: colorized, console-application, hangman, hangman-game, ruby
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
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!