Prompting Claude to build a three‑js game

Claude can generate a complete spot‑the‑difference three.js game from a natural‑language prompt.


Simon Willison demonstrated that Claude can create a functional 3D browser game from scratch using a single plain-English prompt. To test the assistant's capabilities, Willison asked it to design a project around observing visual details, providing the following instructions:

"Build a three js game called "Tree appreciator" - it shows you two algorithmically generated trees and the game mechanics is about appreciating the differences between them. Think hard about how to make sure it is both fun and beautiful."

In web software development, three.js is a library of pre-written JavaScript code used to display interactive 3D graphics inside a standard web browser. Normally, creating 3D objects and turning them into a playable experience requires a developer to write code that controls camera angles, lighting, visual assets, user input, and scoring rules. Asking for algorithmically generated trees means instructing the program to construct tree models dynamically using mathematical formulas, rather than loading pre-made 3D image files.

Instead of writing these graphics scripts by hand, the prompt tasked the AI assistant with generating all the underlying code, visual rules, and gameplay elements on its own. The assistant returned a finished, playable game. Willison described the outcome and the time it took to complete:

"In this case Claude crunched for 3 hours and 7 minutes before retuning a cosy little spot-the-difference game with music and animation and achievements that's quite compelling to play."

This capability is aimed at non-developers who want to prototype simple games or interactive online experiences without writing code. It matters because it lowers the technical barriers to software creation. Rather than spending months learning programming languages, graphics libraries, and audio integration, a creator can describe a game concept, mechanics, and visual style in natural language, relying on the assistant to write and assemble the functional software behind the scenes.

This functionality is shipping and available to use now. However, the process highlights clear operational limits that automated coding tools still face. Generating an entire interactive game complete with graphics, animations, and sound requires significant computational work; in this test, the assistant spent over three hours processing the prompt before returning a final result. While the system can successfully build a self-contained spot-the-difference game, users attempting similar projects should expect long generation times for complex multi-layered builds.

automationefficiency