🎮 Gomoku AI

Play against a heuristic Gomoku AI on a 15x15 board. The engine scores open fours, open threes and other patterns to choose its moves.

📐 工作原理與說明
五子棋 AI 按棋型評分選點:活四(必勝)權重 10000、衝四 1000、活三 1000、眠三 100、活二 100、眠二 10;候選點得分 = 己方成五威脅分 × 攻擊係數 + 對方威脅分 × 防守係數;在 15×15 棋盤上對距已有棋子 2 格內的空點逐一評分取最大,可疊加極小極大搜尋與 alpha-beta 剪枝。