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 built GGUFun, a project that creates hand-crafted GGUF model files to run deterministic games like Snake and a first-person roaming demo on Ollama, with no training involved. The models use custom weights and limited grid computation, allowing Snake to play 57 turns and a maze-like demo where the map is stored in the GGUF. The project is available at ggufun.grokked.it.

read1 min views56 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 ·