Mastermind Applet

 
Highlight the colours you want to play with and press start.
A black peg means you've got a peg of the right colour in the right place.
White means right colour, wrong place.