姚想

摘 要:人工智能的发展常以棋类为先锋。计算机博弈因其特点已成为人工智能发展的重要分支:棋中战术遵循规则,胜负可判,棋力可考,可复现性强,具有人机对抗与纯机器博弈两种测试方式,能直观反映出人工智能的发展水平。本文以点格棋为研究对象,通过创建棋盘数据结构、模拟招法选择、棋局树搜索及优化等方式,实现完整点格棋智能系统的构建;同时与传统的Alpha-Beta搜索进行对比,说明本文算法优化的提升效果及意义。
关键词:人工智能 计算机博弈 点格棋 优化
中图分类号:TP181 文献标识码:A 文章编号:1674-098X(2020)10(a)-0132-03
Abstract: Chess is often applied as a pioneer in development of AI (artificial intelligence). And computer game has become an essential branch of AI development due to the following characteristics: Tactics in chess obey certain rules; victory and level of the program can be judged or measured; great reproducibility can be shown. There are two test methods including man-machine counterwork and machine-machine counterwork, which can both reflect the level of development of AI intuitively. Dots-and-Boxes is chosen as the research object. Establishment of the AI system can be realized by basic chessboard data structure, simulation on choices of moves, tree search and optimization. Meanwhile, compared with the conventional Alpha-Beta search, innovative value and great meaning of this algorithm optimization can be shown clearly.
Key Words: Artificial intelligence; Computer game; Dots-and-Boxes; Optimization
計算机博弈(亦称机器博弈),是20世纪50年代产生的新兴领域。其根源最早可追溯到公元前古希腊的著名思想家亚里士多德,他奠定了形式逻辑的基础。计算机自发明以来发展迅猛, 机器博弈,作为典型的反映计算机智能水平的领域,逐渐成为热门研究方向。欧美国家起步较早,已经发展并研究出如“深蓝”、“AlphaGo”这样广为人知的顶级程序,在其他复杂、不适合人类对弈(因此鲜为人知)的棋类竞赛中,也占据着领先地位。国内对棋类的研究尚处在起步阶段,本文设计的点格棋的智能系统不同于国内常规,具有一定创新性和价值。
1 点格棋基本规则及术语
1.1 基本规则
点格棋(即Dots-and-Boxes),是法国数学家爱德华·卢卡斯于1891年推出的两人纸笔游戏,常用6X6规格的正方形棋盘。共两方选手,双方轮流走招法,所下的是棋盘上的边(纵向、横向),共60条边为有效招法。……