https://github.com/emfy0/hangman
Classic hangman written on Ruby
https://github.com/emfy0/hangman
hangman-console ruby
Last synced: over 1 year ago
JSON representation
Classic hangman written on Ruby
- Host: GitHub
- URL: https://github.com/emfy0/hangman
- Owner: emfy0
- Created: 2022-03-11T10:55:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T23:16:35.000Z (about 4 years ago)
- Last Synced: 2025-01-22T10:29:42.742Z (over 1 year ago)
- Topics: hangman-console, ruby
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Table of Contents
===
[About](#about)
[How to edit word dictionary](#edit)
[How to use](#use)
About
----
This program was written on [**Ruby**](https://www.ruby-lang.org/en/). It is simple implementation of [**hangman**](https://en.wikipedia.org/wiki/Hangman_(game)) to play in console. Functionality is _obvious_.
#### View
```
Всем привет!
Слово: __ __ __ __ __ __ __
_______
|/
|
|
|
|
|
|
|
__|________
| |
Ошибки (0):
У вас осталось ошибок: 7
Введите следующую букву:
```
How to edit word dictionary
----
Open ```/data/words.txt```
```
РУБИ
...
СЧАСТЬЕ
```
Simply add there your words (one word per line).
Example:
```
РУБИ
...
СЧАСТЬЕ
КОТ
```
How to use
---------------
First of all **Ruby** & **Git** must be installed (on Debian based):
```
sudo apt install ruby git
```
clone repo:
```
git clone https://github.com/moonmeander47/hangman.git && cd hangman
```
then you can easily enjoy with (1st run):
```
bundle install && bundle exec ruby main.rb
```
other runs:
```
bundle exec ruby main.rb
```