I am an incomplete Mastermind

Posted by Jeff On 2 July 2010 No Commented

It’s hard to believe I did this two years ago. That was right after I got my first iPhone.

The whole reason this came about was because there was no good, true-to-the-original version of Mastermind in the app store. Some looked the same, some were wildly different. Some had new rules, some didn’t use all the rules, some were just broken.

None had what I wanted: the perfect recreation of the original. Six colors, four slots, use as many duplicates as you like. I still haven’t found a good, faithful version for my iPhone. There is one (called CodeFinder, I believe) that you can play the original rules, but you have to set the difficulty to hard everytime you start the app or else it won’t use duplicates, or something.

So, I set out to make one in Flash. (Two years ago, I was under the mistaken assumption that if I could make something in Flash it would be easy to make the same thing on the iPhone. I know. Ha ha ha ha.) But that’s what I did. This is entirely Actionscript 3, no library objects or timeline stuff, which was a big deal for me at the time, and one of the challenges I set for myself. I succeeded with that part.

I started to add in stat tracking, to keep track of your average number of guesses over time, and was going to tie that into a leaderboard and such. Sounds cool, huh? It would have looked like this maybe:

Then my second kid was born. End of project.

I miss you, Mastermind Incomplete. Maybe we will meet again some day.

For some reason that I haven’t time to track down right now, the instruction text file isn’t loading (maybe I used the font InvisibleInk? hmmm … copyright 2010 Jeff Culbertson!). Here are the missing instructions:

  • The objective of this logical thinking game is to guess the sequence of four colored pegs the computer has selected at random (crack the secret code).
  • Use the arrow keys on the keyboard to select the colors that you think are in the secret code. Left and right arrow keys move the cursor left and right. Up and down arrow keys cycle through the six colored pegs.
  • You must fill in each hole in a row to make a valid guess.
  • Press the Enter key on the keyboard to submit your guess.
  • The computer will compare your guess to the secret code and place markers in the small holes next to your guess to give you hints to how close you are.
  • Each black marker means you have placed one correct color peg in the correct position. Each white marker means you have placed the right color peg, but in the wrong position. No markers means you haven’t guessed any of the right colors.
  • There is no relation between the position of the markers and the position of your pegs.
  • You have ten guesses to crack the secret code.
  • Good luck!

Get Adobe Flash player

Popularity: 1% [?]

Leave a Reply