A Full Conflict Simulation in 395KB: CENTCOM War Game Runs Entirely in Your Browser
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:
| Preset | Description |
|---|---|
| Pre-War | Full Iranian military intact, diplomatic tensions |
| Epic Fury D1 | Opening strikes, leadership decapitation |
| Epic Fury D5 | Navy/Air Force destroyed, IADS neutralized |
| Epic Fury D7 | Full air superiority, mop-up phase |
| Ground Invasion | What-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:
- Democratized policy analysis — Think tanks and academics no longer have monopoly on simulation tools
- Rapid scenario modeling — Spin up a new conflict simulation as events unfold
- 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:
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.