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



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
| Key | Action |
|---|---|
| 1-8 | Set the current peg's colour |
| #/0 | Submit guess |
| Joystick | Move / 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
| Level | Status | Details |
|---|---|---|
| Build verified | Yes | Compiled against CLDC 1.0 / MIDP 2.0; JAR + JAD generated |
| Reference runtime | Yes | Passed at 128x128, 128x160, 176x208, 176x220, 240x320 |
| Emulator verified | Yes | Automated smoke test on MicroEmulator 2.0.4 (176x220) |
| Real device verified | No | Not yet tested on real hardware |
Tried it on a real phone? Send a device report.
Technical details
| MIDlet | codebreaker.CodeBreakerMIDlet |
|---|---|
| Platform | Java ME, CLDC 1.0, MIDP 2.0 |
| JAR size | 16.9 KB |
| Screens | 128x128, 128x160, 176x208, 176x220, 240x320 |
| Storage | RMS record store gk (settings, best score) |