Skip to content

calvached/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

So you want to be a Mastermind?

Ruby version

Built in Ruby 2.1.1p76

Configuration

Clone the repo then navigate to the main directory and execute:

bundle install

Navigate to the bin folder and start the game with:

ruby mastermind

How to run the test suite

Navigate to the main directory and execute:

rspec -c

Game Instructions

The CodeMaker will generate a random pattern with 4 of the following letters: A, B, C, D, E, F. Your job is to break the code (correct letters and correct order) with the least number of guesses. You will have a total of 10 pattern guesses each game. After each guess the CodeMaker will provide feedback by telling you how many guesses are correct in both letter and position and also how many guesses are the correct letter, but in the wrong position.

In order to submit a guess you must first enter 4 valid characters then press the [return] or [enter] key.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages