Skip to content
agentusehub

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.

Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

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.

Reported experience

  1. 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.

  2. 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.

  3. 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.

Example prompts

Try with Gemini
Help me build a browser-based [game genre] game called [game name] in [HTML/JS or framework]. Start with [first system, e.g. map generation, combat engine, or fog of war], write it in small testable pieces, and run it so I can try it. Stop when I can open it in a browser and play a basic round, then list what to build next.
Operations · Intermediate
  1. Label contract email
  2. Extract terms
  3. Log in Sheets

Track vendor contract renewals before they auto-renew

Make pulls contracts from Gmail, Gemini extracts the term and notice period, and a Sheets register emails the owner 60, 30 and 7 days before each deadline.

Gmail · Make · Gemini · Google Sheets
Personal Productivity · Intermediate
  1. 7am schedule
  2. Gather inputs
  3. Prioritise

Morning brief of your meetings, emails and open tasks

A self-hosted n8n job reads your calendar, unread email and Notion tasks at 7am and sends one short brief of what matters today.

n8n · Gmail · Notion · Gemini