Opens in a new tab

The Great Refinery Run

A refinery engineer turned his job into a browser game to explain it to his kids.

See it live
The Great Refinery Run screenshot

What it is

A free, five-minute browser game that walks you through how an oil refinery turns crude into gasoline: removing salt, splitting it by boiling point, cleaning out sulfur, cracking and blending to spec. Small physics puzzles stand in for each step.

Taylor Bloomquist is a chemical engineer who runs logistics at a Texas refinery, not a programmer. He wanted people outside the industry, his own kids included, to understand what he does. Claude, GitHub Copilot and Gemini wrote the code: about 9,000 lines of plain HTML, CSS and JavaScript with the Matter.js physics library. His kids are the playtesters and asked for new features almost every day.

What went wrong

When he asked the AI to rewrite whole files, it cut parts off, made things up and swapped in curly quotes that broke the JavaScript. The fix was asking for small patches instead: find this exact block, replace it with this one.

Getting iPhones to stop zooming and scrolling while still letting players drag things took a lot of custom code. Old timers and piled-up physics objects leaked memory until he added clean-up steps every time the map changes.

What we learned

He sees AI coding as good for low-risk software that only has to be good enough, not for systems that have to be perfect. On a big single file, keep the AI’s changes small and check them.

Comments

    More to see

    Business tools / Operations

    SpamBorg

    AI that stops form spam, with no CAPTCHA.

    John Kirker

    Apps and tools

    Decibel Meter

    A sound meter in your browser, built by a dad to show his kids how sound is measured.

    Vijay Kodam · shared by creatingwith.ai

    Stories and writing

    Poems by Sarah

    A husband built a home for his wife's poems: 26 of them, in four acts.

    Kenneth Reitz · shared by creatingwith.ai

    Join the conversation

    Log in or create a free account to comment and rate. We'll email you a code, so there's no password to remember. You must be 13 or older.

    The newsletter

    New things people made with AI, in your inbox.

    Games, tools and little sites, each with the story of how it was made: what went wrong, and the prompt that worked.