"Hangman" is a guessing game. Goal is to guess a correct word randomly chosen by app.
- Required Ruby (v. 3.1.2) installed on your PC.
- Clone application to local PC:
git clone git@github.com:Godlikefreq/hangman.git
- Open app's folder through command console.
- Run
bundle install
bundle exec ruby main.rb
By default game allows 7 errors to guess word. To increase/decrease errors count change lib/game.rb
:
class Game
TOTAL_ERRORS_ALLOWED = 7
New words can be added by importing them into data/words.txt
.