Micah's Mastermind Game



Note: This Java applet requires a browser that implements Java 1.1. At present, this means you must use at least Microsoft Internet Explorer 4.0 or Netscape 4.77(?).

The Rules

The object of the game is to guess the code of four colors used within 10 rounds. The code is made up from 6 different colors, and a particular color may be used more than once. After you make your round's guess, the computer figures out how close you are to getting the code correct, and shows you that in the corresponding Results column. Each black circle indicates a correct color in the correct position; each white circle indicates a correct color in the wrong position. Each part of your guess will be used only once: for example, if you guessed yellow once, and the answer has two yellows one of which matches your position, you will only see a black circle in the Results column, not both a black circle and a white circle.


About The Program

I wrote this program for a class assignment and to try out Java. Java is a lot of fun, but it really needs a resource editor and better tools, and I found that I missed some of the capabilities of C++ that aren't in Java yet. I put in some hacks and at the rate Java is maturing the code will be obsolete in no time, but if you're curious, you can download the sources.

 


You can send me mail at mic-h@mic-hworld.com.
(Please replace the dashes with the first letter of the alphabet. Sorry, I'm trying to minimize my spam.)

Go to my home page.

Copyright © 2001 Micah Olsen
All Rights Reserved