Skip to content

Kusnierewicz/Mastermind-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Odin Project Assignment: "Build Mastermind game with AI"

My implementation of Mastermind - a code-breaking game for two players. Please see Wikipedia article for extendet info.

Installation

Save Mastermind folder in your chosen location

And then inside of it execute:

$ bundle

Usage

To play the game run:

ruby Mastermind\run_game\play.rb

Setup mode will begin and you will be able to set:

1. number of players
2. Name of each player
3. Role of each player

After that, play mode will begin and you will be able to setup the code and hack the code.

If you choose to play against AI, you can be either hacker or mastermind. Try to be faster than the AI code breaker!! It's almost perfect :)

Still in developement stage!!

  1. Input should be secured to prevent crushing
  2. AI is based on Donald Knuth Five-guess algorithm, but it's not perfect yet. But it is pretty darn good already :)

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

License

* See license.txt for usage details.

About

The Odin Project Assignment: Build Mastermind Game with AI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages