"Master Mind" was that movie or TV show or video game or what?
It's a peg board game. One person creates a combination of colored pegs (behind a screen) and the other person tries to figure out the combination. There is feedback between guesses. If you do a google on mastermind, you will turn up java versions and more.