Home / Puzzle / #082

Code Breaker

Deduce a hidden code of coloured pegs from black and white feedback markers.

Puzzle Emulator verified v1.0.0 16.9 KB

The JAR and JAD are the Original Java ME Version for phones and emulators. How to install.

About

The classic code-cracking deduction game. Each colour sits on its own number key, so entering a guess is just a few taps; the cursor advances automatically and # submits. After every guess you see how many pegs are the right colour in the right place (black) and the right colour in the wrong place (white). Play the standard 4 pegs / 6 colours in 10 guesses, or the tougher 5 pegs / 8 colours in 12.

Objective: Crack the hidden code in as few guesses as possible.

Modes: 4 pegs, 6 colours, 5 pegs, 8 colours

logic deduction colours puzzle

Code Breaker title screen
Title screen
Code Breaker gameplay
Gameplay
Code Breaker running in MicroEmulator
In MicroEmulator 2.0.4

Screenshots captured from the real JAR at 176x208 on the project's reference runtime; the third image is rendered by MicroEmulator 2.0.4.

Controls

KeyAction
1-8Set the current peg's colour
#/0Submit guess
JoystickMove / cycle colours / submit
*Pause menu

In every game: 5 selects in menus, * pauses, and on the title screen # opens help and 0 toggles sound. The joystick and 2/4/6/8 are interchangeable.

Verification

LevelStatusDetails
Build verifiedYesCompiled against CLDC 1.0 / MIDP 2.0; JAR + JAD generated
Reference runtimeYesPassed at 128x128, 128x160, 176x208, 176x220, 240x320
Emulator verifiedYesAutomated smoke test on MicroEmulator 2.0.4 (176x220)
Real device verifiedNoNot yet tested on real hardware

Tried it on a real phone? Send a device report.

Technical details

MIDletcodebreaker.CodeBreakerMIDlet
PlatformJava ME, CLDC 1.0, MIDP 2.0
JAR size16.9 KB
Screens128x128, 128x160, 176x208, 176x220, 240x320
StorageRMS record store gk (settings, best score)