---
title: "Miranda Republic"
url: "https://aigamehub.app/zh-tw/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: "模擬"
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: "zh-tw"
content_locale: "zh-tw"
---

# Miranda Republic

一款回合制政治模擬遊戲，你將在一個虛構的開發中國家擔任四年總統，在 14 個相互競爭的派系之間取得平衡，管理經濟與正當性，並在危機中掌舵，走向 10 種結局之一。

## Description

Miranda Republic 是一款以瀏覽器為基礎的回合制策略遊戲，背景設定在一個虛構的開發中國家。在四年任期內，玩家做出的政策選擇會影響 14 個政治集團，從 Banks 到 Underworld，同時要管理正當性、國家敘事、經濟，以及一個名為 Colossus 的強大外國超級強權的耐心。遊戲包含 54 項政策、9 個成就里程碑、動態事件與危機鏈、事件結果卡、就職日開場、回合簡報，以及 10 種不同結局的敘事尾聲。它也具備儲存/載入、15 步驟引導式教學、可收合的桌面介面，以及五個分頁的行動版版面。以 React、TypeScript、Zustand 和 Tailwind 打造，並具備單元測試與跨瀏覽器測試。

## 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
