Things to make / Recipe 01 of 14 · Play
A playable game from one sentence
Catch messages before the tide reaches the lighthouse.
- About 20 minutes
- For anyone who wants a first game they can actually play and modify.
- Runs in Claude Code and OMP
What the agent made
Ran it for real with Claude Code 2.1.292 and OMP 18.8.5 on 2026-10-08, in an empty session with no saved memory. Your result will differ.
Open what Claude Code made, full screen
The same prompt in OMP made its own version: open what OMP made. Two runs, two different results: that is normal.
Make your own
Get the files
Make an empty folder called
cli-practicein Downloads. No downloads: start in an empty folder.Open your agent in that folder
Open a terminal in
cli-practiceand typeclaudeoromp --approval-mode always-ask. First time? Set up in about five minutes, with steps for Mac, Windows, and Linux.Paste this prompt
Make a tiny browser game: A lighthouse keeper catches messages before the tide rises. Save one self-contained game.html here. Include keyboard arrow keys and tappable on-screen movement buttons, score, three lives, a tide countdown, restart, and instructions. Catching a message increases score; missing one costs a life; after three misses show game over. Keep controls usable on phones. Work only inside this practice folder; never edit input files, install packages, call APIs, send messages, or use external assets. The file must work offline. Use no em dashes or en dashes.
The prompt asks the agent to stay in this folder; it cannot enforce that. Read each file change and command before you approve it.
Check it yourself
Open
cli-practice/game.htmlin your web browser (double-click it), then:Human check: Move with keyboard and on-screen buttons, catch a message, miss three, restart, and play again.
When we checked the recording above: Opened mobile-sized browser page, started a round, used ArrowLeft and held the on-screen left button; caught 2 bottles, watched three misses trigger Game over, used Play again and Restart and saw a fresh round progress. No external requests.
Why an agent, not a chat window
An agent writes and checks a working local game file instead of leaving you to assemble code from a chat reply.