An open API service indexing awesome lists of open source software.

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

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
```