A Mastermind Game Built With Ruby
The game is played using:
- a decoding board, with a shield at one end covering a row of four large holes, and twelve (or ten, or eight, or six) additional rows containing four large holes next to a set of four small holes;
- code pegs of six different colors (or more; see Variations below), with round heads, which will be placed in the large holes on the board; and key pegs, some colored black, some white, which are flat-headed and smaller than the code pegs; they will be placed in the small holes on the board.
The two players decide in advance how many games they will play, which must be an even number.(wikipedia)
- Ruby
The game is developed with ruby. Just crack open your terminal and run the command:
ruby index.rb
The user can:
- Guess computer's secret combination
- Let the computer guess it's secret combination
- Make a more advanced AI for better gaming experience
- Keep track of the user's scoring (wins and losses)
Mouhamadou Diouf ( @mouhad )
Let's connect on:
You can also check my portfolio
- Fork it (https://github.com/MouhaDiouf/mastermind)
- Create your feature branch (git checkout -b feature/[choose-a-name])
- Commit your changes (git commit -am 'What this commit will fix/add')
- Push to the branch (git push origin feature/[chosen name])
- Create a new Pull Request