Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
⚔️ Unconditional Surrender: Western Campaign - Digital Edition Versione digitale interattiva del wargame storico Unconditional Surrender Western Campaign con intelligenza artificiale tattica (Minimax). Trasformare il classico wargame da tavolo Unconditional Surrender Western Campaign in una versione digitale completamente funzionale con:檢視完整 README ↗
Versione digitale interattiva del wargame storico Unconditional Surrender Western Campaign con intelligenza artificiale tattica (Minimax).
Trasformare il classico wargame da tavolo Unconditional Surrender Western Campaign in una versione digitale completamente funzionale con:
unconditional-surrender-digital/
├── packages/
│ ├── shared/ # Tipi, regole, configurazione (TypeScript)
│ ├── backend/ # Game engine + API (Node.js/Express)
│ ├── frontend/ # UI interattiva (React)
│ └── ai-engine/ # Minimax IA (Python)
├── package.json # Root monorepo (Yarn workspaces)
└── README.md # Questo file
| Layer | Tecnologie |
|---|---|
| Frontend | React 18 + TypeScript + Vite + Zustand |
| Backend | Node.js + Express + TypeScript |
| Shared | TypeScript (tipi e regole comuni) |
| AI | Python 3.10+ (Minimax, NumPy) |
| Build | Turbo (monorepo orchestration) |
# Clone o apri il progetto
cd "Desktop/Unconditional Surrender"
# Installa dipendenze (tutti i workspace)
yarn install
# Build tutti i pacchetti
yarn build
# Avvia dev servers
yarn dev
Questo lancerà:
# Crea una nuova partita
curl -X POST http://localhost:3001/api/games
# Carica stato partita
curl http://localhost:3001/api/games/{gameId}
# Lista partite
curl http://localhost:3001/api/games
Minimax(depth, side, alpha, beta)
if depth == 0 or terminal state:
return evaluate(position)
if maximizing (ALLIED):
for each move:
score = Minimax(depth-1, AXIS, α, β, minimize)
α = max(α, score)
if β ≤ α: break [Alpha-Beta Pruning]
return α
else (AXIS):
for each move:
score = Minimax(depth-1, ALLIED, α, β, maximize)
β = min(β, score)
if β ≤ α: break [Alpha-Beta Pruning]
return β
packages/shared/
├── src/
│ ├── types.ts # Tipi GameState, Unit, Hex, etc.
│ ├── rules.ts # Costanti e regole di gioco
│ └── config.ts # Parametri globali, unità test
│
packages/backend/
├── src/
│ ├── index.ts # Express app e routes
│ ├── gameEngine.ts # Logica gioco (TODO)
│ ├── movement.ts # Calcolo movimento (TODO)
│ └── combat.ts # Risoluzione combattimento (TODO)
│
packages/frontend/
├── src/
│ ├── App.tsx # Componente principale
│ ├── main.tsx # Entry point React
│ ├── components/
│ │ ├── GameBoard.tsx
│ │ └── GameControls.tsx
│ ├── store/
│ │ └── gameStore.ts # Zustand state management
│ └── index.css # Stili globali
│
packages/ai-engine/
├── src/
│ ├── minimax_engine.py # Algoritmo Minimax
│ ├── evaluation.py # Funzione valutazione
│ ├── move_generator.py # Generatore mosse (TODO)
│ └── __init__.py
shared/src/rules.ts)export const GAME_RULES = {
MOVEMENT: {
BASE_MP: 10,
TERRAIN_COSTS: { plain: 1, forest: 2, ... },
ZOC_COST: 2
},
COMBAT: {
DICE_SIDES: 6,
CASUALTY_PERCENTAGE: 0.3,
...
}
};
shared/src/config.ts)export const GAME_CONFIG = {
AI: {
MINIMAX_DEPTH: 5,
TIMEOUT_MS: 3000,
ALPHA_BETA_PRUNING: true,
EVALUATION_WEIGHTS: { ... }
}
};
# Run all tests
yarn test
# Watch mode
yarn test --watch
# Coverage
yarn test --coverage
# Debug mode con output verbose
DEBUG=* yarn workspace @uswc/backend dev
# React DevTools
yarn workspace @uswc/frontend dev
# Apri http://localhost:5173
# Python tests
python -m pytest packages/ai-engine/tests/ -v
Questo progetto è creato come fan project per fini educativi. Il gioco originale "Unconditional Surrender" è di GMT Games.
Buon gioco! 🎮⚔️
Last Updated: May 7, 2026