Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 750 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 750 Bytes

Description

"Hangman" is a guessing game. Goal is to guess a correct word randomly chosen by app.

Game's Wiki Page here

Usage

  1. Required Ruby (v. 3.1.2) installed on your PC.
  2. Clone application to local PC:
git clone git@github.com:Godlikefreq/hangman.git
  1. Open app's folder through command console.
  2. Run
bundle install
bundle exec ruby main.rb

Settings

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.