vrugtehagel

About

This version of Mastermind uses no JavaScript! Basically, I just wanted to show off what styling can do.

It uses inputs, labels, :checked and --variables for its logic. A few lines of PHP create a unique solution (in CSS) on page load.

Enjoy!

Mastermind

How to play

Guess the code!

Guesses are scored with a for each color you got exactly right, and a for every correct, but misplaced, color. Only, the hints are not ordered, so you don't know which color they belong to!

Holy mackerel!

You beat the game in ONE move!

You aren't cheating, are you?

Play again

Incredible!

You won in only two moves!

Now that's a mastermind at work!

Play again

Well done!

And only 3 moves! Very nice!

Play again

You win!

4 moves, extraordinary!

Well played!

Play again

You cracked it!

5 moves is pretty darn good!

Play again

Not bad!

You solved it in 6 moves!

Not too shabby, not at all!

Play again

Congrats!

You beat the game in 7 moves!

Hats off to you!

Play again

Clutch!

That was close!

You got it on your last guess!

Play again

Game over!

You couldn't crack it.

That's okay!

Try again