---
title: "Miranda Republic"
url: "https://aigamehub.app/en/games/miranda-republic-4c0f70"
source: "https://github.com/arrudafranco/miranda-republic"
source_type: "github"
play_url: "https://arrudafranco.github.io/miranda-republic/"
platform: "both"
login_required: false
pricing: "free"
origin: "original"
ai_tools: ["Claude Code"]
game_languages: ["en"]
author: "arrudafranco"
author_handle: "arrudafranco"
category: "Simulation"
categories: ["simulation"]
tags: ["browser-game", "narrative", "political-simulation", "resource-management", "strategy", "turn-based"]
added: "2026-11-19T01:07:15.786Z"
updated: "2026-11-19T01:07:15.786Z"
locale: "en"
content_locale: "en"
---

# Miranda Republic

A turn-based political simulation game where you serve four years as president of a fictional developing nation, balancing 14 competing factions, managing the economy and legitimacy, and steering through crises toward one of 10 endings.

## Description

Miranda Republic is a browser-based turn-based strategy game set in a fictional developing nation. Over a four-year term the player makes policy choices that affect 14 political blocs, ranging from the Banks to the Underworld, while managing legitimacy, the national narrative, the economy and the patience of a powerful foreign superpower called the Colossus. The game includes 54 policies, 9 achievement milestones, dynamic events and crisis chains, event outcome cards, an Inauguration Day opening, turn briefings and narrative epilogues for 10 different endings. It also features save/load, a 15-step guided tutorial, a collapsible desktop interface and a five-tab mobile layout. Built with React, TypeScript, Zustand and Tailwind, with unit and cross-browser testing.

## Original post

Turn-based political sim where policy decisions ripple through 14 competing factions. Manage legitimacy, navigate crises, and survive your rival across 10 possible endings. Built with React + TypeScript via Claude Code, with deterministic testing and accessibility features.

Topics: accessibility, ai-assisted-development, claude-code, cross-browser-testing, deterministic-testing, game, governance, political-simulation, progressive-disclosure, react, simulation, strategy-game, tailwind, turn-based, typescript, vite, web-app, zustand

# Miranda Republic A political simulation game set in a fictional developing nation. Navigate four years as president, balancing competing factions, managing an economy under pressure, and surviving the machinations of your political rival. **[Play Now](https://arrudafranco.github.io/miranda-republic/)** ![Miranda Republic gameplay screenshot](screenshot.png) ## About Miranda Republic is a turn-based strategy game where every policy decision ripples through 14 political blocs, from the Banks to the Underworld. Manage your legitimacy, control the national narrative, and keep the Colossus (a powerful foreign superpower) from losing patience. With 54 policies (including 5 milestone-exclusive rewards), 9 achievement milestones, event outcome cards, dynamic events, crisis chains, an Inauguration Day narrative opening, richly varied turn briefings, narrative epilogues (Presidential Dispatches) for all 10 endings, and 10 possible endings, no two playthroughs are alike. The desktop UI features switchable Overview/Detail modes for blocs, policies, milestones, and the sidebar, collapsible sections, dynamic resource bar coloring, a milestone tracker with condition checklists, an always-visible toolbar End Turn button with action count, close buttons on all informational modals, save/load with one-click saving and confirmation-guarded loading, and a guided 15-step tutorial with spotlight highlighting. Fully responsive for mobile with a 5-tab layout. ## Tech Stack - **Framework:** React 19 - **State Management:** Zustand 5 - **Styling:** Tailwind CSS v4 - **Build Tool:** Vite - **Language:** TypeScript - **Testing:** Vitest with seedable PRNG (183 unit tests across 9 suites, including 3,000-seed fuzz across 3 difficulty levels) + cross-browser smoke tests (Chromium, Firefox, WebKit) ## Local Development ```bash git clone https://github.com/arrudafranco/miranda-republic.git cd miranda-republic npm install npm run dev ``` The game runs at `http://localhost:5173/miranda-republic/` by default. ## Documentation For a complete reference of all game mechanics, policies, events, crisis chains, endings, and design rationale, see **[DESIGN_DOCUMENT.md](DESIGN_DOCUMENT.md)**. ## Project Structure ``` src/ components/ # React UI components data/ # Policy definitions, bloc data, events engine/ # Game logic (rival AI, economy, congress, narrative) hooks/ # Custom React hooks types/ # TypeScript type definitions utils/ # Seedable RNG, helpers test/ # Vitest engine tests (run with npm test) ``` ## Testing ```bash npm test # 183 unit tests (engine logic, milestones, briefing, fuzz, balance) npm run test:browsers # Cross-browser smoke tests (requires dev server running) ``` Cross-browser tests launch Chromium, Firefox, and WebKit via Playwright to verify that the game loads, renders core UI, and plays through the opening sequence without errors. Install browsers with `npx playwright install chromium firefox webkit`. ## How This Was Built Miranda Republic was built collaborativ
