A Breakout game mostly built from one Claude prompt

A small Breakout-style web game was created to practice . A free provided access to , with its extra enabled. One detailed prompt produced a mostly working first version in a single attempt.

Built with , the game places the paddle in the center, green bricks above it, and red bricks below it. The ball cannot leave the screen and bounces off every wall; clearing all green bricks wins the game, while clearing all red bricks ends it. The existing website’s home page and style code were supplied so the game could be added as a separate outbreak.html page.

The generated code was then reviewed by hand, bugs were found, slight paddle rotation was added, and the game was expanded with more levels. The first level repeats one placement rule, while later levels use grid-shaped lists to define different brick colors.

Key points

  • was used through a free with extra reasoning enabled.
  • One detailed prompt produced most of the working first version.
  • The paddle sits in the center, with different win and loss conditions for the green and red bricks.
  • The game was designed to become an outbreak.html page within an existing website.
  • The code was reviewed manually before adding paddle rotation, fixing bugs, and creating more levels.
Read original