cd /news/artificial-intelligence/show-hn-ggufun-play-snake-and-a-simp… · home topics artificial-intelligence article
[ARTICLE · art-57074] src=ggufun.grokked.it ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Show HN: GGUFun, play snake and a simple maze on Ollama using hand crafted GGUFs

A developer created GGUFun, a project that runs Snake and a maze game on Ollama using hand-crafted GGUF model files with no training. The GGUFs deterministically compute game states from token inputs, demonstrating a novel but impractical use of the format.

read1 min views1 publishedJul 13, 2026

A couple weeks ago I was wondering if I could build a GGUF model file that, when run on ollama, would deterministically answer with the same exact sentence (not simply using a system prompt).

That was surprisingly easy to implement, leveraging mostly the unembedder, so I started exploring GGUFs.

First I built a simple GGUF that could compute the position of a point in a limited grid, using 4 directional tokens as input. All weights are "hand crafted", no training involved. Of course, being ollama stateless, it needs to compute everything from scratch each time from the whole conversation.

Then (with the help of coding agents) I used it as the base to build a "complete" game of snake: it can only play 57 turns (it can be fixed though) and the position of food is computed using a hash, without checking if the new position is under the snake. But it works.

Since the obvious evolution would be to run Doom on ollama, I at least got a first person roaming demo working, where the frontend only knows about the input it gives, the map comes from the GGUF.

Even if it's completely useless, it has been fun to look into how this can be done, given the obvious limitations.

Both can be played at [https://ggufun.grokked.it](https://ggufun.grokked.it)

Comments URL: [https://news.ycombinator.com/item?id=48889775](https://news.ycombinator.com/item?id=48889775)

Points: 1

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @ggufun 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-ggufun-play-…] indexed:0 read:1min 2026-07-13 ·