═══ 「決鬥 25」紙牌遊戲基本 AI 版 ═══ 2025 年 9 月 23 日 · 閱讀時間約 8 分鐘 ┊ 純文字版 [1] 資訊 2025-09-24 更新:修正了牌堆用完檢查的邏輯。 程式碼在 GitHub [2] 和 Code.Wiwi.Blog [3]。 用了非常簡單的算法做了 AI,這個版本的電腦不再是隨機出牌了,而是會內部模擬多場牌 局,看出哪一張牌的勝率最高。 試試看,有沒有比上一版難贏? 不知道怎麼玩?請看上一篇貼文 [4]。 ── 「決鬥 25」紙牌對戰遊戲 v2.0 ── ♠️♣️ 攻擊 | ♦️ 反擊 | ♥️ 回血 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 玩家:25 HP電腦:25 HP 你的手牌(點選出牌): 點選手牌出牌開始對戰! ── 連結與圖片 ── [1] https://wiwi.blog/blog/card-game-ai.txt [2] https://github.com/wiwikuan/duel-25 [3] https://code.wiwi.blog/wiwi/duel-25 [4] https://wiwi.blog/blog/simple-card-battle-game.txt