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.