Agentic Programming · Lab 1: Build Something Live in 1 Hour
A top-down capture-the-flag shooter that runs in the browser. You play alongside 4 AI teammates against 5 AI enemies. Grab the enemy flag, carry it back to your base, and watch out for wizards. Built live in one hour with Claude Code, in a single HTML file with no libraries and no build step.
| Key | Action |
|---|---|
| WASD | move |
| Shift | sprint |
| Mouse | aim |
| Click | shoot |
| R | reload |
| Esc | menu |
- Two teams of five, with bot AI that pushes, defends and takes cover behind obstacles
- Flag carry and capture, with a "YOU HAVE THE ENEMY FLAG" banner while you're carrying it
- Wizards as a third, neutral threat
- Everything in
index.html, drawn on a<canvas>
Open index.html in any modern browser. There's nothing to install.
The commit history shows the iterations. The first version was a wave-based twin-stick shooter, and it was then rebuilt as capture-the-flag with bot teams and wizards.
Part of my Agentic Programming labs (HUJI, AICODE 67723): Lab 1 · CTF Arena · Lab 2 · LLM failure modes · Lab 3 · Coin Dash with several agents · Lab 4 · Traffic monitor spec · Lab 5 · Chess: testing new features · Lab 6 · Binary search explainer video