Build a browser 4X strategy game with LLM coding help
The poster built the browser 4X game Hexwardia in two weeks using Grok and Gemini to write the combat engine, fog-of-war, map generation and heuristic AI.
What they did
The poster says they built Hexwardia in two weeks as a fully in-browser 4X game, using Grok as the main builder and repository and Gemini as a second-pass logic auditor. They had the models write systems like combat, fog of war, map generation, and heuristic AI, then constrained fixes to diff-only surgical patches so the models changed only specific routines instead of rewriting whole files.
How it went
The game was live in alpha v0.04.x, loaded in under a second, and the poster said matches were aimed at 15–30 minutes. In comments, an outside player reported a complete gameplay loop, real challenge from the AI, and no bugs, while also criticizing city depth, unit-role clarity, and map/world believability.
Worth knowing
Their main practical tip was enforcing no-rewrite, edit-only patches, which they say cut token burn by more than 60%; they also mention paying for $30 SuperGrok and $20 Gemini plans.
Labels
The poster built the browser 4X game Hexwardia in two weeks using Grok and Gemini to write the combat engine, fog-of-war, map generation and heuristic AI.
They had the models write systems like combat, fog of war, map generation, and heuristic AI, then constrained fixes to diff-only surgical patches so the models changed only specific routines instead of rewriting whole files.
The poster built the browser 4X game Hexwardia in two weeks using Grok and Gemini to write the combat engine, fog-of-war, map generation and heuristic AI.
The poster says they built Hexwardia in two weeks as a fully in-browser 4X game, using Grok as the main builder and repository and Gemini as a second-pass logic auditor.
The poster says they built Hexwardia in two weeks as a fully in-browser 4X game, using Grok as the main builder and repository and Gemini as a second-pass logic auditor.
The “Material” label failed its quality check and is not used for selection.
Details
- Agents
- Gemini
- Source
- Source date
- Aug 31, 2026
- Accounts
- 1
- In registry since
- Oct 12, 2026