agentusecases.aiAll 2,360 use cases
Games & Simulations

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. · Aug 31, 2026

Done withGEGemini

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.

Try it yourself 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.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

Read the original ↗

Source: Reddit · Aug 31, 2026

Related use cases

  • GE

    Orchestrate a multi-phase RAG migration

    A walkthrough of using Gemini CLI to coordinate a complex, multi-phase cloud migration project.

    Gemini

  • GE

    Sort waste using local recycling rules

    Gemini Robotics-ER 1.5 looks up local recycling rules online, then plans and sorts objects into compost, recycling and trash bins.

    Gemini

  • GE

    Look up and summarize web content from a browser extension

    A commenter built an agentic browser extension using Gemini that handles lookups on selected text or images and summarizes articles on a webpage.

    Gemini

  • CC

    Play RollerCoaster Tycoon

    Ramp Labs put Claude Code in RollerCoaster Tycoon.

    Claude Code

  • CC

    Add a battle-of-Alesia expansion to a 1990s game remake

    Nate Combs used ChatGPT for research and a prompt, and Claude Code implemented the expansion, iterating on his playtest feedback.

    Claude Code

  • GB

    Build four games in parallel with agents

    Four Grok 4.20 agents built a tower defense, mini Factorio, CHIP-8 emulator and roguelike shooter in parallel over a day.

    Grok Bot

Keep browsing

All 79 Gemini use casesAll 60 Games & Simulations use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us