About Mastermind

Play Mastermind free in your browser. Crack the hidden color code. No download or sign-up required.

How to play Mastermind

Find a secret code of four colors from six choices in at most ten guesses. Colors may repeat. Exact counts correct colors in correct positions. Color only counts correct colors in different positions; each occurrence counts once. Numbers label colors for clarity. Undo is available.

Players and saved progress

Play on your own, without an account. Progress is saved in this browser on this device. It does not sync to other devices.

Use the Comfort button for larger card faces, contrast, sounds, timer visibility, and reduced interface motion. Arcade movement remains active.

More puzzles & logic games

Browse all games

Make yourself comfortable.

A few small adjustments, just for you.

Remembered across all games on this device.

A familiar game, a quick refresher.

  1. Build the four foundations. Place aces in the top-right spaces, then build up to kings in the same suit.
  2. Alternate colors on the table. Place a red 6 on a black 7, for example. You can move an entire face-up sequence.
  3. Make room for kings. Only a king, or a sequence starting with one, can move to an empty column.
  4. Turn over a new card. Click the face-down deck. When it runs out, click again to recycle. You can go through it as often as you like.

Keyboard: Tab to a card and press Enter to select it. Tab to the destination and press Enter again. Escape clears your selection. You can also drag cards.

Deals are random; some cannot be won. Hints suggest legal moves, not a guaranteed solution.

A fresh start?

This will replace your current game and undo history.

Beautifully played.

Enjoy that little moment. You earned it.