https://github.com/klengvinayte/hangman
A console game in which you need to guess the word
https://github.com/klengvinayte/hangman
game-concole ruby
Last synced: 9 months ago
JSON representation
A console game in which you need to guess the word
- Host: GitHub
- URL: https://github.com/klengvinayte/hangman
- Owner: klengvinayte
- Created: 2022-10-20T11:32:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T16:25:31.000Z (over 3 years ago)
- Last Synced: 2025-01-29T07:11:14.086Z (over 1 year ago)
- Topics: game-concole, ruby
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hangman
A game in which you need to guess the hidden word
This is a Ruby application and requires the Ruby language and bundler to run.
Running:
```
bundle
bundle exec ruby main.rb
```
### Rules of the game
* It is necessary to guess the word by opening one letter each turn
* If the letter is not guessed, the error counter will increase by 1
* A total of 7 attempts to guess the letters in the word
* If the user has not guessed the word in 7 attempts, and the gallows is drawn completely, then he is considered "hanged" and the game ends
### Add or change game words
To add or change game words, change the text file `words.txt`
```
hangman/data/words.txt
```
The case of the words does not matter
[Wikipedia](https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D1%81%D0%B5%D0%BB%D0%B8%D1%86%D0%B0_%28%D0%B8%D0%B3%D1%80%D0%B0%29)