Skip to content

This is an attempt to digitally replicate the Mastermind game in Ruby

Notifications You must be signed in to change notification settings

m-pitera/Mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Mastermind

Setup

In order to run the game simply clone or download the repo and you can run it though "ruby main.rb" when within the repo's lib directory

After cloning or installing the repo, when in the root directory, you can run the game with:

ruby main.rb

Running Specs

You can run tests by running this command while in the root directory:

rspec

Or if you want to test a specific file you can run:

rspec path/to/spec/file.rb

Current Capabilities

The game's current capabilities are that it will prompt at start to begin and react accordingly. After the instructions it will process guesses as valid or invalid and give instructions according to what was incorrect. The user will not receive feedback yet and it is impossible to win the game, but after all 10 guesses the secret code will be presented and the user will be prompted whether they'd like to restart. The user may also type 'quit' during the guess phase at any time and the game will exit.

About

This is an attempt to digitally replicate the Mastermind game in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages