NOTE: this project taught me to use classes and their methods
It is very simple - you have to guess the hidden word. You can enter only one letter per turn.
You can make a mistake no more than 7 times.
The word for the game is randomly selected from the file:
/data/words.txt
Word requirements:
- Еvery word from a new line
- All letters in the word must be capitalized
- The game is tested in Russian and English
bundler
is using in the project. It must be installed. You can do this with the command:
gem install bundler
After that, install all the necessary gems:
bundle install
Now you can safely run the game:
bundle exec ruby main.rb
The application requires Ruby version 2.4.0 or higher