🎮 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 剪枝。