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
Versione Digitale del Gioco GMT
Translation pending
GamesTypeScript · CSSGitHub @Tannoiser2OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
⚔️ 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:Read the full 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