Decode the Dragon's Vault

The classic code-breaking game

📅 Daily Vault
AI is thinking…
— Played 0 Won 0 Avg — Best —
How to play

The goal

A dragon has sealed its vault with a secret code of 4 to 6 gems. Crack it in 10 tries or fewer. Gems can repeat, so a code like ruby, ruby, sapphire, topaz is fair game.

Reading the clues

After every guess you get a small set of pegs:

  • Black: a gem is the right color and in the right spot.
  • White: a gem is the right color but in the wrong spot.
  • No peg: that gem isn't in the code (or you've used it more times than the code does).

The pegs are not in order, so they don't say which gem earned them. That's the puzzle: compare your guesses to work it out.

1

One ruby or emerald is in the right spot, and one more is in the code but somewhere else.

Placing gems

Choose how you like to tap, under Placing (it's remembered next time):

  • Select (default): tap a gem to pick it up, then tap a hole to drop it in. The gem stays picked, so you can drop it into several holes in a row.
  • Place: just tap gems and they fill the holes left to right. Tap a gem already in the row to pop it out, or use ⌫ to remove the last one.

Modes

  • 📅 Daily Vault: everyone gets the same 4-hole, 6-color code each day. One attempt per day; if you leave, your progress is saved. Keep your streak going and share your result.
  • 🔓 Codebreaker: the dragon picks a code, you crack it. Choose 4 to 6 holes and 6 or 8 colors.
  • 🔐 Codemaker: you set a code and the AI tries to crack it. Standard AI plays like a sharp human; Genius AI uses Knuth's method and rarely needs more than 5 tries. With Manual scoring you give the black and white pegs yourself.
  • 👥 2-Player: one player sets a code, passes the device, and the other cracks it.

Tips

  • A strong first guess is two pairs, like ruby, ruby, emerald, emerald.
  • Only guess codes that fit every clue so far; it's the fastest way to the answer.
  • Hard to tell the gems apart? Tap the shapes button at the top to mark each gem with its own symbol.

Questions

Is Dragon's Vault free?
Yes. It is free to play in any browser with no ads, no download and no sign-up. You can also install it to your home screen and play offline.

How do you play Mastermind?
Guess the hidden code of 4 to 6 gems in 10 tries or fewer. After each guess, a black peg means a gem is the right color in the right spot, and a white peg means the right color in the wrong spot.

What is the Daily Vault?
A new 4-hole, 6-color code every day, the same for everyone. You get one attempt per day, your streak grows with every day you crack it, and you can share a spoiler-free result.

Can I play against the computer or a friend?
Yes. Crack the computer's code as Codebreaker, set a code for the Standard or Genius AI to crack as Codemaker, or play 2-player pass-and-play on one device.

What is the best Mastermind strategy?
Start with two pairs, such as ruby, ruby, emerald, emerald, and from then on only guess codes that fit every clue so far. Donald Knuth showed the classic 4-hole, 6-color game can always be solved in 5 guesses.

Dragon's Vault is an independent take on the classic code-breaking game, not affiliated with the makers of the Mastermind board game. More free games: BetaProjects Games.