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.
- 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.
Related agent uses
Guide a game agent through Goat Simulator 3
SIMA 2 in Goat Simulator 3 can be nudged by a person giving live directions.
Build an HTML5 browser game in small steps
A developer used Gemini to assemble a browser game, then recovered from stalled chats by restarting and reloading the code context.
Use Gemini to generate a match-3 game from one prompt
A single Gemini prompt produced a working Candy Crush-style game and a share link.
Build a text game around AI narration
A developer used Grok to narrate a choice-based game and said it handled story text better than Gemini and GPT.
Pit three agents against a browser shooter build
Three coding agents independently built the same multiplayer shooter, letting the team compare their strengths and weak spots.
Test screenshot-to-click scaling in a simple web game
A developer used Gemini with Playwright to confirm that click coordinates lined up with the browser view.