Mastermind is a two player game where one player tries to guess the code that is set by the other player. I created a one player implementation of the game where the computer will randomly generate the code to be guessed.
I also went further to implement an algorithm to have the computer play itself and guess what the code is in as few guesses as possible.
Give it a try. Play Mastermind