---
title: 'Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me'
url: 'https://niklas-stephan.de/en/blog/snake-ten-minutes-three-cents'
markdown: 'https://niklas-stephan.de/en/blog/snake-ten-minutes-three-cents.md'
lang: en
date: '2026-11-26'
description: "Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me The prompt was one sentence, typo included: can you make a small new github project that's a browser version of the popular snake game? Ten minutes later the game was playable at handtrixx.github.io/snake, the repository existed under …"
taxonomy:
  category:
    - web
  tag:
    - ai
    - llm
    - cost
    - snake
    - homelab
---

# Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me

   26th Nov 2026   [ai](https://niklas-stephan.de/en/blog/tag:ai#body-wrapper) [llm](https://niklas-stephan.de/en/blog/tag:llm#body-wrapper) [cost](https://niklas-stephan.de/en/blog/tag:cost#body-wrapper) [snake](https://niklas-stephan.de/en/blog/tag:snake#body-wrapper) [homelab](https://niklas-stephan.de/en/blog/tag:homelab#body-wrapper)  

The prompt was one sentence, typo included:

> can you make a small new github project that's a browser version of the popular snake game?

Ten minutes later the game was playable at `handtrixx.github.io/snake`, the repository existed under my GitHub account, and it had already appeared as card 01 in my [zoo](https://niklas-stephan.de/en/en/zoo/snake). This post is about what actually happened in those ten minutes and what it cost — because the number is more interesting than the game.

## What happened

The agent — a local LLM running a coding-agent harness in a sandbox on my own server — did the obvious things and, more importantly, the un-obvious ones I didn't ask for:

1. Checked what GitHub tooling and tokens were lying around, without ever printing a secret.
2. Wrote the game in three files, no dependencies: HTML, CSS, one `game.js` — about 200 lines.
3. Caught its own bug before shipping: a CSS color function that isn't portable inside canvas, replaced with plain alpha fading.
4. **Actually played the game** in a headless browser — started it, steered, took a screenshot, checked the console for errors — instead of declaring victory from reading its own code.
5. Created the repository, pushed, enabled Pages, and verified the public URL answered 200 with a working canvas.

What I contributed: one sentence, a follow-up question about whether cloning a 50-year-old game concept hurts anyone's copyright (it doesn't — mechanics aren't copyrightable, the one patent on the mobile variant expired years ago), and the decision to publish.

## What it cost

Locally, the honest answer is "some electricity", and I can only estimate it: the task was a few dozen tool calls, a handful of minutes of real GPU work — at my server's draw, maybe **1–3 cents**. If the identical task had run on a commercial frontier model, at today's list prices the estimate lands around **$0.60–0.90**: roughly 20k output tokens, a million-plus cache reads because every tool call replays the context, some cache writes. Both sides carry the same uncertainty — my local run isn't metered either — but the order of magnitude is not in question: cents vs. dollars, a factor of about thirty.

(For context in the other direction: the whole working day of site projects this AI did would have been $8–15 at frontier-model list prices. Still not much. The sovereignty point is made elsewhere — [the site's own evolution](https://niklas-stephan.de/en/en/blog/website-evolution) is one argument for it.)

## Versus a programmer

Snake is a classic exercise: bootcamps assign it, juniors put it on portfolios. A reasonable estimate for an experienced developer to deliver what this repo contains — mobile swipes, buffered turn input so a double-tap can't kill you, persistent high score, light/dark, DPI-sharp canvas, a README that reads well — is **2–5 hours**. At freelance rates of €70–100/h that's **€150–500**, plus the repo setup, the Pages plumbing, and the testing the developer may or may not have done.

So the comparison on the invoice is not close — it's a rounding error against an hour of someone's rate. But the honest version of the comparison isn't the invoice:

- The AI cannot decide that this is worth making, remember that the result should land in the zoo, or ask whether it may harm anyone. Those were my ten minutes.
- The estimate above quietly assumes the developer *does* the polish. The cheap version of the task — a square snake on a white page — takes an hour and is not the same product.
- A human would probably also have *wanted* to write it by hand. That's legitimate; some things you do for the doing.

What changed isn't that programming became cheap. It's that the gap between *having an idea* and *having the finished, tested, published thing* collapsed to one sentence and ten minutes — and the interesting skill quietly moved from writing the code to knowing what's worth building, and checking the result with clear eyes.

Play it: [snake](https://handtrixx.github.io/snake/) · [source](https://github.com/handtrixx/snake)

---

## Navigation

- Parent: [Blog](https://niklas-stephan.de/en/blog.md)
- Previous: [From Dreamweaver to Grav: The Evolution of niklas-stephan.de](https://niklas-stephan.de/en/blog/website-evolution.md)
- Next: [No- and Low-Code App Builders](https://niklas-stephan.de/en/blog/no-und-low-code-app-baukasten.md)
