UPDATE 2.3 IS OUT 3D ELECTION MAP START A CAREER IN ANY YEAR FROM 1960 HISTORICAL RACES: 1960–2024 PRIMARY NIGHT, COUNTY BY COUNTY 36 PLAYABLE CITIES CUSTOM POLITICAL PARTIES STEAM EDITION $9.99, NO SUBSCRIPTION OPTIONAL LOCAL AI UPDATE 2.3 IS OUT 3D ELECTION MAP START A CAREER IN ANY YEAR FROM 1960 HISTORICAL RACES: 1960–2024 PRIMARY NIGHT, COUNTY BY COUNTY 36 PLAYABLE CITIES CUSTOM POLITICAL PARTIES STEAM EDITION $9.99, NO SUBSCRIPTION OPTIONAL LOCAL AI
How It's Made

The Engine

What POTUS Election Sim is built from, how its simulation fits together, and how the local AI works.

The Engine

A game engine built from reusable systems

POTUS Election Sim runs on its own game engine, built in HTML, CSS and JavaScript and shipped as a desktop app through Electron. The engine is a set of reusable systems rather than one big script. Careers, elections, Congress, budgets, diplomacy and war are each their own system, and they share the same underlying parts: state, events, approval, votes and the screens that show them.

Because the systems are reusable, a new office or a new rule can be built from pieces that already exist, and every level of the career ladder behaves consistently.

P.A.G.E

Politics.Advanced.Game.Engine, the visual editor

P.A.G.E is the visual editor for the engine. Screens, systems and the connections between them are laid out on a canvas instead of being wired up only in code. A cabinet selection screen, for example, needs candidate choices, confirmation rules and layout to work together, and the editor keeps those connections in one place.

Mods can add content as data, and they can also include code, so they can go beyond reskinning what the game already does.

Simulation Systems

One world, many connected models

Elections. Campaigns run on real state and county geography, with historical elections, real nominees and era-specific issues. Election night is a broadcast built from the same results the simulation produces.

The career ladder. You can enter politics at different offices and climb. Mayor, state legislature, governor, Congress, vice president and president each use a shared office engine, so approval, events and re-election work the same way at every level.

Congress and the law. Bills have coalitions, roll-call votes and a docket. Passed laws stay in force and shape later decisions. Amendments, vetoes, impeachment and constitutional hardball are modelled, not scripted.

The economy and budget. A fiscal model tracks spending and revenue by demographic group, with consequences for approval and for what Congress will pass.

The world. Diplomacy, the UN Security Council with its vetoes, treaties, nuclear policy and war all run as their own systems. Wars play out on a map-based theater board with units, supply and battle resolution.

The simulation owns every number. If something changes approval, a vote count or a treaty outcome, that change comes from the game's own rules, never from generated text.

Local AI

A language model that runs on your computer

The download includes a language model, Qwen3 4B Instruct, which runs on your GPU or CPU. It needs no AI account, API key or subscription, and nothing you type is sent anywhere.

It writes the words around the simulation: briefings, news, social posts and the responses to answers you type yourself. When you write your own answer, the model reads it and judges how decisive and realistic it is. The simulation then decides the actual effects.

Speed depends on your hardware. You can lower the AI quality or turn it off in Settings, and the game falls back to written content if the model is unavailable.

> reading player input: situation room, order #4

> scoring decisiveness + political realism

> generating consequence, advisor reaction, headline

> no network request sent