cd /news/ai-tools/sudoku-in-zig · home › topics › ai-tools › article
[ARTICLE · art-175152] src=ziggit.dev ↗ pub= topic=ai-tools verified=true sentiment=↓ negative

Sudoku in Zig

A developer building a full Sudoku implementation in Zig with ascii, ansi, web and Android front ends concluded that AI coding assistants "really has no idea, and will find the 'easy' way out of any task," describing the tool as "a glorified refactoring and template tool, needing full direction from a software engineering point of view." The developer, who used the Matt Pocock workflow with TDD slices of vertical code, said the AI repeatedly failed to respect the project's UI-agnostic command-flow abstraction, solving tasks for only one front end at a time, until a mechanical parity test that runs each front end on the same command set and compares calls and answers enforced consistency. The developer reports growing Zig knowledge substantially and now feels "in control" of the AI through a set of rules, procedures and mechanical tests, while acknowledging the balance is treacherous.

recommendation

When an AI agent keeps breaking an abstraction across multiple front ends, add a parity test that runs each front end on the same command set and asserts identical calls and answers.

more in playbook: Working with AI coding agents
read2 min views8 publishedNov 24, 2026

Full Sudoku implementation with multiple front ends: ascii, ansi, web, android. See GitHub - mwigzell/sudoku-zig: Zig implementation of basic Sudoku features multiple front ends. · GitHub.

My intention was to learn Zig and also to see whether AI is reliable enough.

I used the Matt Pocock workflow and TDD slices of vertical code. I found that the AI really has no idea, and will find the “easy” way out of any task. It of course doesn’t read the codebase and retain it, so it doesn’t operate on the entire project when it thinks.

That is the downside for sure. I was able to get a set of rules and procedures and mechanical tests around it, to the point where now I feel in control of it.

My Zig knowledge has grown tremendously (a major goal), and my understanding of how an AI might be an augmentation to the software engineering process also. It is a glorified refactoring and template tool, needing full direction from a software engineering point of view.

The design of the app has a game engine that is totally UI agnostic, and via a “command flow” strategem implemented differently by each front end it is able to support both a simple “ascii” terminal and web based frontends (so far). The showcase front end is the android app.

The major issue I encountered was in having the AI take heed of the command flow abstraction.

It often solved things for just one or the other front end. I finally figured out a mechanical way to enforce parity across the frontends, using a kind of test code that runs each front end on the same command set, noting the call and answer for each, and enforcing parity.

I fully admit that it is a treacherous balance, and at this point I need to dig into writing Zig more actively, having seen a fair sampling of what can be done with it.

── more in #ai-tools 4 stories · sorted by recency
── more on @zig 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/sudoku-in-zig] indexed:0 read:2min 2026-11-24 · —