How to make a puzzle game with AI (and play it on a Game Boy Color)
Also in: Español · Deutsch · Français · Português · Italiano · Nederlands · Svenska · Norsk · Bahasa Indonesia · Türkçe · Polski · Tiếng Việt · Русский · 日本語 · 한국어 · 繁體中文
To make a puzzle game with AI, open Shiny Gen, start a new game on the GBC Engine (or Godot or GBA), and describe the puzzle in the Agent tab: the pieces, the board, how pieces move, what clears them, what makes it harder and the screens around it. The AI agent writes the game, draws the pixel art as code, compiles a real Game Boy Color cartridge, plays it and fixes what it finds. We did that for this guide. Five messages gave Gem Well: columns of three gems falling into a well, matches of three or more in a row, column or diagonal, chain bonuses, levels that speed up, a pause screen, a two-minute time attack mode and a best score for each mode. It took about twelve minutes of agent time and 224 gems.

The test: five messages, one puzzle game
Everything below is from one real session on 27 November 2026, recorded in the Shiny Gen app. The prompts are copied word for word, the AI's messages are quoted from the chat, and the pictures are screenshots of the app. Nothing was edited by hand.
| Message | What we sent | Agent time | Gems |
|---|---|---|---|
| 1 | The puzzle game, with the art asked for up front | 5 min 15 s | 10 |
| 2 | "continue" | 2 min 43 s | 86.2 |
| 3 | "continue" | 42 s | 29.6 |
| 4 | A time attack mode and flashing gems | 1 min 2 s | 30.5 |
| 5 | "continue" | 1 min 45 s | 68.1 |
Step by step: the puzzle game we made
1. Start a Game Boy Color game
Press +, choose New, then pick GBC Engine on the Choose an engine screen. In a browser, this link opens a new GBC game directly. The Agent tab is where you talk to the AI.
2. Describe the rules, art included
Our first prompt, exactly:

A puzzle game lives or dies by its rules, so the prompt spells them out: the board size, the piece, every control, what counts as a match, what happens after a clear, and how it gets harder.
3. Watch it build, then play the pause screen
The agent read the Game Boy Color reference, drew the gem tiles and the brick border as code, and built the game. It found and fixed its own bugs as it played: the well's side borders vanished on one row because a text-clearing call wiped the whole line, and "PAUSED" stayed on screen after resuming. Its first message ended with a clear split:

4. "continue": testing matches and chains
Matches and chains are hard to test by pressing buttons, because the right gems have to land in the right place. The agent spent the next two messages setting up boards by writing the game's memory directly, struggled when some of those writes did not take, and got there in the end:

That is the most expensive part of this session, and it is worth knowing: testing a puzzle's rules can cost more than building them.
5. Ask for the next change
The fourth message:
The agent added the mode switch on the title screen (FREE or 2 MIN), a countdown beside the next-piece box, a "TIME UP" ending and a best score per mode. It also told us that part of the request was already there:
It made the existing flash faster so it is easier to see.
6. The part it could not confirm: the saved best score
The last "continue" tried to prove that the best score survives turning the cartridge off and on. The game wrote its save without an error, but in the editor's test setup the score never came back after a restart, and the agent could not tell whether that was the test setup or a bug in its game:
init(), write-at-game-over pattern, and the write succeeds. I can't tell whether the empty read-back is a limit of this test setup or a real bug.
So that is the first thing to check when you play it yourself.
7. Play it and download the ROM
The game plays in the editor and from its card: on-screen buttons on a phone, the keyboard or a controller on a computer. Press Share, then Export .gbc ROM to download the cartridge. Exporting is included with any purchase. The ROM guide covers emulators and flash carts.
What we learned from the test
- Write the rules down completely. The board, the piece, each control and what counts as a match all came out as asked.
- Rules cost more to test than to build. Most of the gems went into setting up boards to prove matches and chains.
- The agent says when your request is already done (the flash) and when it cannot prove something (the save).
- Check saving yourself. Play a round, close the game, and look at the best score.
What to put in a puzzle game prompt
- The board: its size, and what fills it.
- The piece: its shape, and every way you can move or turn it.
- The rule: what makes a match or a line, and what happens after a clear.
- Difficulty: what speeds up, and when.
- Scoring: points, chains, combos, a best score.
- Modes and screens: title, pause, game over, time attack, endless.
- The look: tile sizes, colors, and "draw the art yourself as code".
What the Game Boy Color can hold, for a puzzle game
- Screen: 160 x 144 pixels, which is 20 x 18 tiles of 8 x 8, so an 8 x 16 well and a side panel fit side by side.
- Colors: eight background palettes and eight sprite palettes of four colors each.
- Sprites: 40 on screen and ten on a line.
- Saves: a battery-backed save in the cartridge for best scores.
Ideas to ask for next
- "Add a two-player mode where my chains drop junk gems on the other side."
- "Show a preview of where the piece will land."
- "Add a puzzle mode with 20 set boards to clear."
- "Play a short tune when a chain reaches three."
- "Make the background change color with each level."
FAQ
Can AI make a puzzle game?
Yes. Describe the rules and the look, and Shiny Gen's agent writes the game, draws it and tests it. This one took five messages, about twelve minutes of agent time and 224 gems.
Can AI make a game like Tetris?
Yes, a game in the same genre: a falling-block puzzle like the one on this page. Make it your own, with your own pieces, rules, names and art rather than Tetris's, especially if you share or sell your game.
Is it a real .gbc ROM?
Yes. It is a Game Boy Color cartridge image compiled to the machine's own code. We have played Game Boy Color ROMs made this way on a Game Boy Advance and a ModRetro Chromatic through flash carts, and any GBC emulator opens it.
Can I make a puzzle game for the browser instead?
Yes. Pick the Godot Engine instead of the GBC Engine and describe the same game; it plays in a browser and on phones.
Is it free?
Making, playing and sharing games is free. The built-in agent uses gems, and new accounts get free gems. Downloading the ROM is included with any purchase. See the pricing page.
