Released

Code Break

Play Code Break free online: guess the 4-digit code in ten tries and read bulls and cows feedback after every guess. A logic puzzle that trains elimination, no download, no sign-up.

Play Code Break

Type or tap four digits, then submit. Each guess lands in the history list with its bull and cow counts. You have 10 guesses; the tenth wrong guess ends the game and reveals the code. Keyboard: type the digits, Backspace deletes, Enter submits. The on-screen keypad does the same thing. Add ?code=1234 to the page URL to play one fixed code, or ?seed=word to replay the same random code. Wins, losses and the current streak are stored on this device.

Loading game...

Objective: Crack the 4-digit code before your ten guesses run out. After every guess the game counts bulls (right digit in the right place) and cows (right digit in the wrong place), and each digit of the secret is credited at most once. The first digit may be 0 and digits may repeat. Narrow the code down with the counts: a guess that returns 0 bulls and 1 cow rules one digit out at one position. Controls: Type the digits on the physical keyboard, or tap the on-screen keypad (0-9, backspace to delete, tick to submit). Backspace deletes a digit and Enter submits. Buttons: Rules and New game. The counter in the top right shows how many of the 10 guesses are used; the panel on the left shows the secret code (hidden until the game ends) and the bulls and cows counts of the last guess.

🎮 Just launched — be one of the first players!

Can't play? Report a problem

If the game doesn't load, you canopen it in a new tab。

Source and license

Code Break is a Playnesta-original code puzzle. The engine (js/main.js: the splitmix32 seeded code draw, the bulls/cows scoring rule where a secret digit is credited at most once, the ten-guess round and the guess history), the stylesheet, the analytics bridge and the touch shim are all Playnesta-original (MIT, see LICENSE.txt in the package). The upstream reference maxwellito/breaklock @ 8dedd3baccc051928b09605db5cb8dae3702d2f3 (MIT) was read during selection as a mechanism reference only: no bytes are copied and no file under its MIT license is redistributed, and its webpack + babel + sass build chain (with no committed build output) is far heavier than this shell allows. The game is renamed: the classic four-digit code-breaking board game is sold under a registered brand name (Mastermind, Hasbro / Invicta), which appears here only as a tag and a search phrase, never as the game's name, slug or title. Playnesta Games is the developer and publisher of this web implementation. https://github.com/maxwellito/breaklock · MIT

Game facts

Developer
Playnesta Games
Publisher
Playnesta Games
Genre
Logic, Puzzle

Playnesta guides

More free browser games on Playnesta — pick your next round.

Last verified 2026-10-22 12:30 UTC. Information can change; follow the linked source for the latest details.