Click the game first so it gets your keys. Plug in a controller for two joysticks like the real machine, or hold the left mouse button and drag; W A S D and the arrow keys work too. On a tablet, hold it sideways. Full screen

Lab · Exhibit 06

Excavator Simulator, six jobs on a sand lot.

I asked Claude Code, running Claude Fable 5.2, for a realistic excavator game I could play with an Xbox controller. This is the result after two days of refining. Take the seat of a compact excavator and dig. Cut a trench to depth, load a truck, work along a wall, grade a pad to within six centimetres and uncover a buried pipe without striking it. The soil slumps, sticks and spills the way real ground does.

Built with
Claude Code, Claude Fable 5.2
Prompt
One sentence
Made
Challenges
Six, plus free dig
Controls
Controller, mouse and keyboard, touch
Stack
three.js, Rapier physics, Web Audio
Runs
Entirely in your browser

Under the hood

Ground that behaves like ground

The lot is a 512 by 512 grid of 6.25 cm cells. Four soils, from dry sand to wet clay, each have their own angle of repose, the height a cut wall will stand, digging resistance and how much sticks in the bucket. Soil you dig travels in the bucket as real grains, simulated with the Rapier physics engine, and turns back into ground where it lands. Cut a wall too high and it caves in. Every engine and hydraulic sound is synthesised in the browser; there are no audio files.

The prompt

One sentence, typos corrected

realistic excavator game using existing hardware (Xbox controller) with interesting gameplay, good physics, sound and realistic controls

Each job is marked on accuracy, efficiency, smoothness and safety. Jerky levers cost points, and so does tilting the machine or touching the pipe. The controls follow the two standard excavator patterns, ISO and SAE, switchable in the settings as operators do on site.

Contact

Questions, ideas or a conversation?

I’m always glad to hear from people working on AI, product strategy, transformation or software.