Spaces:
Sleeping
Sleeping
|
Download README.md from WorstCardGame/worst-card-game: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/spaces/WorstCardGame/worst-card-game/resolve/main/README.md
- Command line
-
hf download hf://spaces/WorstCardGame/worst-card-game/README.md
-
curl -L -o README.md https://huggingface.co/spaces/WorstCardGame/worst-card-game/resolve/main/README.md
1.43 kB
| title: Worst Card Game | |
| emoji: 🃏 | |
| colorFrom: indigo | |
| colorTo: red | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # worst-card-game(網頁多人重製版) | |
| > 上方 YAML 為 HuggingFace Spaces(Docker SDK)設定;部署見 [`DEPLOY.md`](DEPLOY.md)。 | |
| 卡牌 Rogue-like 的 TypeScript / React / Node 重製版。 | |
| **唯一實作依據**:[`guide/`](guide/) 的規格。 | |
| 原版 C++(`../Lengend-of-Strategy-Card-Game-/`)凍結不動。 | |
| ## 最高原則 | |
| `packages/battle-core` 是**純規則引擎**:不碰畫面、不碰網路、決定性、可注入亂數種子。 | |
| 前端(web)、後端(server)、單機 / 鬼影 / PvP **全部共用同一份** battle-core,差異只透過 | |
| `cards.json` 的 `modeOverride.PVP` 或薄協調層表達,**嚴禁在 core 內 `if(isPvp)` 分叉規則**。 | |
| ## 結構(monorepo, npm workspaces) | |
| ``` | |
| packages/ | |
| battle-core/ 純規則 + 卡表 + 測試(零相依) | |
| web/ React 前端(M2) | |
| server/ Node 後端:鬼影 REST、PvP WebSocket(M3+) | |
| ``` | |
| ## 開發路線 | |
| M0 骨架 → **M1 規則引擎 + 卡表(純邏輯 + 測試)** → M2 單人網頁 11 關 → | |
| M3 存檔 / 鬼影 → M4 第 12 關鬼影 → M5 上線打磨 / PvP。 | |
| ## 指令 | |
| ```bash | |
| npm install # 安裝(workspaces) | |
| npm test # 跑所有套件測試(目前 = battle-core) | |
| npm run typecheck # 型別檢查 | |
| npm run build # 編譯 | |
| ``` | |