Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Games

Mastermind Game

· Last updated:2026-07-06

Classic Mastermind code-breaking game. The computer picks a secret color code; you guess row by row. Black pegs = right color and position; white pegs = right color, wrong position.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
Color214
Game27
Right21
Black14
White12

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Games
Input types
select
Output type
interactive
Sample coverage
4
API ready
Yes

Overview

Play the classic Mastermind code-breaking game directly in your browser. Challenge your logical deduction skills as you guess the computer's secret color code row by row, using black pegs for exact matches and white pegs for partial matches.

When to use

  • When you want to practice logical deduction and pattern recognition with a classic board game.
  • When you need a quick, engaging mental break or brain teaser during work or study.
  • When teaching basic deductive reasoning, probability, or logic concepts to students.

How it works

  1. 1Select your preferred difficulty level to set the number of colors, slots, maximum tries, and whether duplicate colors are allowed.
  2. 2Submit your guess row by row by selecting colors for each slot.
  3. 3Analyze the feedback pegs: black pegs indicate a correct color in the correct position, while white pegs indicate a correct color in the wrong position.
  4. 4Use the feedback to refine your next guess and crack the secret code before you run out of attempts.

Use cases

  • Exercising deductive reasoning and logical thinking skills.
  • Playing a quick, ad-free puzzle game to pass the time.
  • Demonstrating basic algorithmic logic and feedback loops in educational settings.

Examples

1. Standard Code-Breaking Challenge

Casual Gamer

Background

A user wants a balanced logic puzzle to test their deduction skills during a short break.

Problem

Finding a secret code from 6 colors across 4 slots with duplicate colors allowed.

How to use

Select the 'Standard' difficulty option and start guessing colors row by row, adjusting choices based on the black and white peg feedback.

difficulty: standard

Outcome

The user cracks the code in 7 attempts using systematic elimination.

2. Easy Mode for Beginners

Logic Student

Background

A student is learning the rules of Mastermind and wants a simpler game without duplicate colors.

Problem

Learning the basic mechanics of peg feedback without the complexity of duplicate colors.

How to use

Choose the 'Easy' difficulty setting, which limits the game to 4 colors, 4 slots, and no duplicates across 12 tries.

FAQ

What is the difference between a black peg and a white peg?

A black peg means a color is correct and in the right position. A white peg means a color is correct but in the wrong position.

Can the secret code contain duplicate colors?

Yes, duplicate colors are allowed in Standard and Hard difficulties, but are disabled in Easy difficulty.

How many attempts do I get to crack the code?

You get 12 attempts on Easy, 10 attempts on Standard, and 8 attempts on Hard difficulty.

Does the order of the feedback pegs match the order of my guess?

No, the feedback pegs are displayed in no particular order to keep the deduction challenging.

How do I win the Mastermind game?

You win by guessing the exact color code, resulting in all slots receiving black pegs before running out of tries.

Hub

Classic Browser Games and Quick Puzzles

Pick an instant browser game for a short break, from 2048 and Minesweeper to trivia and two-player classics.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Game Development

Bevy Game Engine Samples

Bevy Rust game engine examples with ECS, 2D/3D graphics, audio, and game mechanics implementations

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Kotlin

Android Image Processing Kotlin Samples

Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Games

Hangman Game

Classic hangman word-guessing game. Guess the hidden word letter by letter; six wrong guesses ends the game. Three difficulty levels, with general, animals, food, and science categories.

Games

Magic 8 Ball

The classic Magic 8 Ball. Ask any yes-or-no question, shake, and get one of 20 traditional answers (yes / no / uncertain). Classic English phrases or localized translations.

Games

Tic-Tac-Toe

Classic 3×3 tic-tac-toe against a random AI, an unbeatable minimax AI, or a friend. Keeps score across rounds.

Games

Rock Paper Scissors

Classic rock-paper-scissors with a random opponent or an adaptive AI that learns your patterns. Shake animation, running score, and history.

difficulty: easy

Outcome

The student successfully deduces the code in 5 tries and understands how black and white pegs correspond to their guesses.

3. Hard Mode for Advanced Players

Puzzle Enthusiast

Background

An experienced player wants a highly challenging deduction puzzle.

Problem

Cracking a complex 5-slot code drawn from 8 colors with duplicates allowed in only 8 attempts.

How to use

Select the 'Hard' difficulty option and carefully track color combinations and negative feedback to optimize every guess.

difficulty: hard

Outcome

The player uses advanced elimination strategies to solve the code on their final attempt.