Skip to main content
Version: Peyvand Academy 2026

Build 3: Catch & Dodge

Difficulty: ●●● Challenge · Build time: ~3 minutes

The challenge: a real game loop. Move a basket with the Left and Right arrow keys to catch the falling fruit for points — but dodge the bombs.

The prompt​

Copy and paste this into claude.ai:

Make a simple web game. Good fruit and bombs fall from the top. I move a basket with the Left and Right arrow keys to catch the fruit for points but dodge the bombs. Catching a bomb costs a life, and the game speeds up over time. Show the score and lives. Make it work with a normal keyboard.

Only the arrow keys are used — perfect for a banana joystick later. By now you should believe you can ask Claude for almost anything.

Steps​

  1. Paste the prompt

    Copy the prompt above into claude.ai and press Enter.

  2. Play one quick round

    Catch some fruit, dodge a bomb, and watch the score and lives change.

  3. Notice the speed

    The game gets faster over time — a full game loop with rules, not just one reaction.

Backup demo​

Open the finished game

A keyboard-playable catch-and-dodge game demo.

Next: Hands-on with Makey Makey →