Build a browser 4X game with LLM help

A developer used Grok and Gemini to assemble Hexwardia, a browser-based 4X game, in two weeks.

Done with Gemini· Intermediate· Aug 2026

What they did
They made Hexwardia over a two-week span and kept the whole project playable in a web browser. Grok did most of the coding work, while Gemini reviewed the logic from a second angle. The models were tasked with core parts of the game, including combat, hidden-map behavior, world layout, and simple opponent logic, and later changes were limited to small targeted edits instead of broad rewrites.
How it went
The game reached alpha v0.04.x and was said to open in under a second, with each match planned to last around 15–30 minutes. A player who tried it reported a full gameplay loop, tough AI, and no bugs, but also said city systems felt shallow, unit functions were hard to read, and the world map lacked believability.
Tips
They found that forcing edit-only changes reduced token use by more than 60%. They also mentioned using $30 SuperGrok and $20 Gemini plans.

Try it yourself with Gemini

I’m making a web-based strategy game named [game name] using [HTML/JS or framework]. Start by helping me build [first system], but keep the work broken into small pieces I can verify in the browser. For each step, show only the exact limited edits you want to make, and stop for my approval before any irreversible action such as deleting code, submitting changes, or making a payment. When there is a playable version, tell me what to add next and what to test first.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.