Simple command-line mastermind game created with Ruby.
This project, as part of The Odin Project's "Ruby Programming" module, is an attempt at developing a command-line mastermind game adhering strictly to the newly learned principles of object-oriented programming. The game's AI can act as both the code-maker and the code-breaker, giving players the option of choosing their own role against the AI.
- Ruby 2.7.2
To run this project, call it from the home directory of the repository through the command line:
ruby lib/main.rb
- The AI algorithm in codemaker mode occasionally diverges and causes the entire game to crash, indicating it stands to be significantly improved. The priority of this fix is low at this time, as the goal of the project has been to enact the principles of object-oriented programming to put together a coherent, organized program as opposed to focusing on algorithms.