Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kusnierewicz/mastermind-game

The Odin Project Assignment: Build Mastermind Game with AI
https://github.com/kusnierewicz/mastermind-game

challenge fun game mastermind ruby terminal-game

Last synced: 4 days ago
JSON representation

The Odin Project Assignment: Build Mastermind Game with AI

Awesome Lists containing this project

README

        

# 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](https://github.com/Kusnierewicz/Mastermind-game/blob/master/LICENSE.txt) for usage details.