Worked example · For beginners

Making a snake game with no coding, the WDD way

This is Whiplash Driven Development at its simplest: someone who has never written code asks an AI for a snake game, tries it, and keeps pushing ("keep going", "it doesn't work", "make no mistakes") until it plays properly. About twenty minutes, no coding.

The goal

A snake game that runs in the browser, with arrow-key controls, a score, a high score that is remembered, and a game-over screen.

The verifier

You. Open it and play: does it do everything on the list?

Why this check: For your own projects, you are the check. Say exactly what is wrong when it is not right; that is the "evidence" that makes the AI fix the real problem.

The set-up

  • An AI app that can show what it makes: Claude, ChatGPT (canvas), Gemini (Canvas) or an app builder.
  • The start message from the builder on this site (Simple mode), or the "Start anything" prompt.

The kickoff prompt

Kickoff

I want to make a snake game with arrow keys, a score, a high score that is remembered, and a game-over screen. I'm not a programmer, so do all the coding yourself and make it so I can try it straight away. Keep going until it works, and make no mistakes.

How the rounds went

Round 1
The AI makes a game you can try at once. The snake moves, but the page scrolls when you press the arrow keys.
Round 2
"It doesn't work: the whole page moves when I press the arrows. Fix it and keep going." Fixed.
Round 3
It says it is finished. The high score resets when you reload. "Not quite my tempo. The high score isn't remembered. Keep going." Fixed.
Round 4
"Make it better: faster as you grow, and a start button. Keep going until it's perfect." Done. You have a game.

What worked

  • Saying exactly what was wrong, in plain words.
  • Not accepting "it's finished" until you had tried it yourself.
  • Asking for one improvement at a time.

What to watch for

  • If it gets worse, use "Go back to the last version that worked."
  • Never type personal details or passwords into an AI app.

Build a kit for a task like this

A worked example written to show the method, not a report of a specific project.

Questions people ask

Do I need to install anything?

No. Claude, ChatGPT and Gemini can show a game like this right in the chat; you can also save it as an HTML file and open it in your browser.

How do I share my game?

Ask the AI: "How can I share this with a friend?" App builders such as Lovable, Bolt or Replit can publish it with one button.

More examples