AI Game Hub
☰
EN
● — online · Views — times
SponsorSubmit a game
Maker gextam

Mastermind

A browser version of the classic Mastermind code-breaking game on a wooden board, with a live shared scoreboard and an offline copy.

MastermindPreview of Mastermind
Go play ↗Go to the maker's site ↗Source code ↗Maker's profile: @gextam ↗

This game needs a computer (keyboard controls)

Send to myself (LINE)

About this game

You play either as codebreaker, guessing the hidden colour code with as few rows as possible, or as codemaker, hiding a code and watching the server's Knuth minimax solver take it apart. Six preset boards (classic 4 pegs x 6 colours x 10 guesses up to 6 pegs x 8 colours x 15 guesses) plus custom rules with 2-8 pegs, 2-10 colours, optional repeats and blanks, and solver hints that show how many codes remain. Play is by mouse drag-and-drop or full keyboard, and a REST API plus MCP server let an AI agent play on the same scoreboard.

More games