Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kusnierewicz/mastermind-game
- Owner: Kusnierewicz
- License: mit
- Created: 2014-09-08T21:45:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T21:28:19.000Z (about 7 years ago)
- Last Synced: 2023-08-27T16:06:52.141Z (about 1 year ago)
- Topics: challenge, fun, game, mastermind, ruby, terminal-game
- Language: Ruby
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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 playerAfter 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.