888 d8b 888
888 Y8P 888
888 888
88888b.d88b. 8888b. .d8888b 888888 .d88b. 888d88888888b.d88b. 88888888b. .d88888
888 "888 "88b "88b88K 888 d8P Y8b888P" 888 "888 "88b888888 "88bd88" 888
888 888 888.d888888"Y8888b.888 88888888888 888 888 888888888 888888 888
888 888 888888 888 X88Y88b. Y8b. 888 888 888 888888888 888Y88b 888
888 888 888"Y888888 88888P' "Y888 "Y8888 888 888 888 888888888 888 "Y88888
A command-line version of the board game Mastermind, written in Ruby
Play Online at Replit: https://replit.com/@xsys/Mastermind#
Read more about the game here: https://en.wikipedia.org/wiki/Mastermind_(board_game)
Create a playable version of the board game Mastermind. Allow the player to choose to be either the codemaker or codebreaker. When playing as codebreaker, accept string input guesses and provide appropriate feedback on the correctness of the guess. End the game when appropriate. When playing as the codemaker, have the CPU intelligently guess and end the game when appropriate
Ruby classes/objects, arrays, hashes, accessor methods
How to use user input to change how a game runs, how to compare arrays, basic game AI, % notation