OhMyGame
OhMyGame is the open-source studio for making games with AI. Design, build, playtest, and publish games in one app, with your own model keys.
大戰略 Web — 六角格現代戰爭策略遊戲(劇情模式、陣營差異、電腦 AI)
Translation pending
GamesJavaScriptGitHub @JeffreyLanTWOnlineOwner 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
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗六角格現代戰爭策略遊戲,純 HTML/CSS/JavaScript,無需建置。
直接用瀏覽器開啟 docs/index.html 即可;或啟動本機伺服器:
python3 -m http.server 8765 --directory docs
舊版虛構劇情(聯邦篇、帝國篇)保存在 fictional-v1 分支。
| 檔案 | 內容 |
|---|---|
docs/js/data.js | 地形與兵種數值 |
docs/js/map.js | 隨機地圖產生 |
docs/js/game.js | 遊戲規則:移動、戰鬥、佔領、回合 |
docs/js/ai.js | 電腦 AI |
docs/js/campaign.js | 劇情系統:任務地圖、勝敗判定、分支、繼承、配置回合 |
docs/js/campaign_tw.js | 劇情「第三次世界大戰」 |
docs/js/campaign_fs.js | 劇情「福爾摩沙之盾」 |
docs/js/campaign_qian.js | 劇情「乾為天・六龍御天」(易經乾卦) |
research/daisenryaku/ | 大戰略系列參考資料(FC/世嘉主機版數值、經典地圖、來源索引) |
docs/js/audio.js | 背景音樂與音效(Web Audio 合成) |
docs/js/saves.js | 存檔系統 |
tools/balance.js | 劇情地圖檢查與 AI 自動對戰平衡測試 |
tools/mapgen.js、tools/maps.js、tools/mapsync.js | 大地圖產生器:以經緯度海岸線、山脈、道路與據點畫出地圖字串,mapsync 寫回 docs/js/campaign_fs.js 標記 // mapgen:<名稱> 的地圖 |
docs/js/icons.js | 部隊圖示:型號造型對照、各國迷彩與國籍標誌 |
docs/js/render.js | Canvas 繪圖與動畫 |
docs/js/ui.js | 操作、面板、對話框 |
https://war.jeffreylan.com (GitHub Pages)
node tools/balance.js --check # 只檢查任務地圖
node tools/balance.js --runs 40 # 帝國篇每個任務 × 各路線模擬 40 場
node tools/balance.js t1 c5 --runs 20 # 指定任務
node tools/balance.js --nations --games 8 # 16 國循環賽
node tools/balance.js --duel L --vs A,B,C --games 40 --sizes s,m,l --turns 80 --jobs 4 --losses # AI 風格對決(每張地圖換邊、固定亂數可重現、平行執行、列出敗局)
node tools/balance.js --chain fs --runs 60 # 整部戰役連續模擬(部隊延續、失敗重試)
node tools/balance.js f4 --carry 7,150 # 帶入 7 支經驗 150 的部隊測試單一任務
node tools/mapgen.js island --view # 預覽大地圖與據點座標(island / strait / chain)
node tools/mapsync.js # 修改 tools/maps.js 後同步回任務地圖
node tools/balance.js --sweep fs --runs 40 # 帶入兵力掃描:每關用 0/4/8/12 支繼承部隊測試,標出 45–75% 以外的格子
AI 同時扮演雙方,統計玩家方勝率與平均回合數。真人通常比 AI 強,AI 勝率 40–70% 約等於「有挑戰但打得過」。