whatisgithub

What is aoe-mini?

tigercosmos/aoe-mini — explained in plain English

Analysis updated 2026-05-18

19TypeScriptAudience · developerComplexity · 3/5Setup · easy

In one sentence

A browser-based real-time strategy game inspired by Age of Empires II, built in TypeScript with three civilizations and AI opponents.

Mindmap

mindmap
  root((AoE Mini))
    What it does
      Browser RTS game
      Isometric renderer
    Tech stack
      TypeScript
      Canvas2D
    Use cases
      Play against AI
      Study game architecture
    Audience
      RTS fans
      Game dev learners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Play a free browser-based RTS game against AI opponents.

USE CASE 2

Study how a deterministic, testable game simulation is structured in TypeScript.

USE CASE 3

Share a specific match setup with someone else using a URL with seed and settings.

What is it built with?

TypeScriptCanvas2D

How does it compare?

tigercosmos/aoe-mini7y-9/agentsmd-checkavacocloud/avaco-deno
Stars191919
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyeasymoderate
Complexity3/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

AoE Mini is a browser based real time strategy game inspired by Age of Empires II. It is built entirely in TypeScript, with the game logic and the on screen rendering kept separate, so the simulation can run and be tested independently of what you actually see on screen. The visuals use a 2D canvas drawn to look isometric, similar to classic strategy games. The game includes three playable civilizations, each with its own bonuses and a unique special unit, and progresses through four ages from Dark to Imperial, following the familiar economy then military then conquest arc of this genre. You gather four resources, food, wood, gold, and stone, build eleven types of buildings, and train a roster of units including villagers, foot soldiers, archers, and cavalry. There is fog of war, a minimap, combat with armor and bonus damage between unit types, and computer controlled opponents with easy, medium, and hard difficulty settings that manage their own economy and army. To try it, you install the dependencies with npm install and start it with npm run dev, then open the printed local address in a browser. By default you play as the Britons against two AI opponents, the Franks and the Mongols, and the game starts in an auto play mode where an AI plays for you until you switch to manual control. Match settings, including the map seed, opponent difficulty, and map size, can be set through a menu in the interface or directly in the page address, which makes it easy to share a specific match setup with someone else. The project also includes a large automated test suite, over two hundred tests, along with a headless mode that can run a full match between AI opponents with no browser at all, used as an automated check that a complete match can be played to a decisive result. The code is organized into clear layers: shared types and math, the core simulation engine, the map and pathfinding, game content data, the AI opponents, and the renderer, each kept independent of the others.

Copy-paste prompts

Prompt 1
Explain how the deterministic, seeded simulation core in this RTS game works.
Prompt 2
Help me add a fourth civilization with its own bonuses to this game.
Prompt 3
Show me how the AI opponents in this project decide when to attack.
Prompt 4
Walk me through running the headless AI-vs-AI match mode for testing.

Frequently asked questions

What is aoe-mini?

A browser-based real-time strategy game inspired by Age of Empires II, built in TypeScript with three civilizations and AI opponents.

What language is aoe-mini written in?

Mainly TypeScript. The stack also includes TypeScript, Canvas2D.

How hard is aoe-mini to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is aoe-mini for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.