So you want to be a Mastermind?
Built in Ruby 2.1.1p76
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
Navigate to the main directory and execute:
rspec -c
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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request