A Full Conflict Simulation in 395KB: CENTCOM War Game Runs Entirely in Your Browser

By Prahlad Menon 3 min read

What happens when you point an AI coding assistant at declassified military data and ask it to build a wargame?

You get CENTCOM War Game — a full-spectrum conflict simulation that runs entirely in your browser. One HTML file. 395KB. No backend.

What It Does

This isn’t a game in the entertainment sense. It’s an analytical tool that models a hypothetical US/Iran conflict using real-world data:

Data Sources (OSINT):

  • IISS (International Institute for Strategic Studies) — military ORBAT
  • CSIS (Center for Strategic and International Studies) — strategic analysis
  • EIA (Energy Information Administration) — oil market data
  • IAEA — nuclear program estimates
  • IMF — economic baselines

Modeling Approaches:

  • Lanchester combat model — classic attrition warfare mathematics
  • Game-theoretic escalation — decision trees for conflict escalation
  • Monte Carlo analysis — 100 simulation runs for probabilistic outcomes
  • Full-spectrum conflict — military, economic, cyber, proxy warfare

The Scenario Presets

The simulation comes with five preset scenarios:

PresetDescription
Pre-WarFull Iranian military intact, diplomatic tensions
Epic Fury D1Opening strikes, leadership decapitation
Epic Fury D5Navy/Air Force destroyed, IADS neutralized
Epic Fury D7Full air superiority, mop-up phase
Ground InvasionWhat-if: US escalates to ground war

Each preset adjusts force dispositions, economic conditions, and escalation parameters. Run 100 Monte Carlo simulations and watch the probability distributions shift.

The Technical Implementation

What’s impressive isn’t the politics — it’s the engineering:

Total size: ~395KB
├── Leaflet.js (interactive map)
├── Chart.js (visualization)
├── 6 OSINT data files (embedded as JS objects)
├── Lanchester combat engine
├── Monte Carlo simulation loop
└── LiveUAMap-style UI

Everything runs client-side. No server calls except to load the page. You could save it locally and run simulations offline.

Calibrated parameters:

  • Oil price range: $80-125/barrel
  • Casualty ratios: 12-57:1 (Iran:US)
  • Nuclear threshold: cumulative-to-daily rate conversion

Built with Perplexity Computer

The repo credits Perplexity Computer as the development tool. This matters.

We’re entering an era where AI coding assistants can ingest research-grade data (military ORBATs, economic models, conflict theory) and produce functional analytical tools in hours rather than months.

The implications:

  1. Democratized policy analysis — Think tanks and academics no longer have monopoly on simulation tools
  2. Rapid scenario modeling — Spin up a new conflict simulation as events unfold
  3. Transparent methodology — Open source means the models can be audited and criticized

What This Isn’t

Let’s be clear: this is a simplified model. Real military planning uses classified data, proprietary simulations, and decades of institutional knowledge. A browser-based tool with OSINT data isn’t replacing RAND Corporation or the Pentagon’s wargaming division.

But it’s a proof of concept for something new: analytical tools that anyone can run, fork, and modify.

The Bigger Picture

Single-file applications are having a moment. We’ve seen:

  • zclaw — 888KB AI assistant on ESP32
  • SkyClaw — 6.9MB AI agent binary
  • Now: 395KB conflict simulation

The pattern: pack maximum capability into minimum payload. No dependencies, no deployment complexity, no ongoing costs. Just download and run.

For analytical tools specifically, this matters because it removes barriers to access. A policy student in Lagos can run the same simulation as a defense analyst in Washington. The data is open. The models are transparent. The compute is your browser.

Try it: eesb99.github.io/centcom-wargame-ghpages

Source: github.com/eesb99/centcom-wargame-ghpages