尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Ai game modeled after the infamous df
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A browser colony simulation with a procedural, six-level ASCII world, dwarven labor, workshops, militia, trade, and a fortress chronicle. The interface uses the original Base16 Isotope Dark terminal palette.
Use Node.js 22.18 or newer. The committed lockfile is bun.lock; npm install
also works.
bun install # or: npm install
npm run dev
Open http://localhost:3000. AI-generated lore, decrees, and the advisor use
GEMINI_API_KEY in .env.local (3.5 Flash-Lite first, then 3.8 Flash; see
lib/gemini-server.ts). The deterministic game works without it. Google
sign-in and cloud archives use the project's Firebase configuration.
/ opens command search. I opens inspection. Escape cancels or closes.[ and ] change depth. Arrow keys inspect; Shift+arrows select an area.New colonies start paused. Decision dialogs pause the simulation and restore its previous state when closed. The simulation stops advancing while the browser tab is hidden.
Grow the colony into a Mountainhome Capital by reaching 25,000 fortress score. The goal beneath the fortress name opens milestones, building unlocks, and rank progress. Score comes from wealth, population, workshops, exploration depth, and relics.
Locked blueprints cannot be queued from any tool, including inspector shortcuts. Each building type's manual action (Inspect a building, or Clan & orders → building actuators) recharges for 24 ticks after use. Dwarves who fall in combat leave the clan for good; seasonal migrants can still arrive if provisions allow.
New colonies open a 13-topic guide covering map controls, all building categories, workers and defenses, trade, Decrees, Guild Hall, expeditions, and saving. Use Menu → How to play to resume or replay any topic. The guide starts paused; Finish & resume starts the simulation.
The game saves the complete fortress to this browser every 15 seconds, when leaving the game, and when the tab is hidden or closed. Save also writes a local checkpoint immediately. Continue on the realm screen restores the saved map, dwarves, orders, resources, and guild progress, and starts paused.
Opening ?autostart=1 restores the existing local checkpoint if available.
Browser storage is tied to the site's address. A local preview and the deployed site have separate saves. Clearing browser data removes local saves.
Cloud saves (Sign in with Google, then Save) store the whole fortress: a summary
in saves/{id} for the archive list, and a gzip-compressed snapshot of the full
game in snapshots/{id}, written together in one batch. A late-game fortress
compresses to under 100 KB. Loading an archive resumes whichever full copy is
newer, the cloud snapshot or this browser's checkpoint of the same fortress.
Archives saved before snapshots existed still load: the map and clan restart
from the seed with the archived stockpiles and calendar. Archive ids are
namespaced per player, so two players who choose the same seed no longer
collide; archives a player already owns keep their old id.
Full cloud saves need the Firestore rules in firestore.rules deployed to the
app's database. Until they are, Save keeps working and stores a summary only.
npx firebase-tools login
npx firebase-tools deploy --only firestore:rules # uses firebase.json and .firebaserc
npm run check # typecheck, lint, and tests
npm run build
Tests cover the simulation, pathfinding, UI models, progression, the copy-on-write grid, AI route input limits, cloud snapshot round trips, and local save round trips, including compatibility with original unversioned saves.
The simulation never mutates a published grid: stepSimulationTick edits a
draft that copies only the rows it changes (lib/grid.ts). Terrain counts are
cached per level, and the map redraws an underground level only when it
changes. Treat GameState.grid as immutable outside test setup.