Skip to content

moudio/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind Game

A Mastermind Game Built With Ruby

About Mastermind

The game is played using:

  1. 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;
  2. 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)

Technologies

  • Ruby

How To Play The Game

The game is developed with ruby. Just crack open your terminal and run the command:

    ruby index.rb

Functionalities

The user can:

  • Guess computer's secret combination
  • Let the computer guess it's secret combination

Possible Future Improvements

  • Make a more advanced AI for better gaming experience
  • Keep track of the user's scoring (wins and losses)

Developed by

Mouhamadou Diouf ( @mouhad )

Let's connect on:

You can also check my portfolio

Contributing

  1. Fork it (https://github.com/MouhaDiouf/mastermind)
  2. Create your feature branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -am 'What this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen name])
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages