Journal of Computer Applications ›› 2016, Vol. 36 ›› Issue (6): 1630-1633.DOI: 10.11772/j.issn.1001-9081.2016.06.1630

Previous Articles     Next Articles

Gobang game algorithm based on LabVIEW

MAO Limin1, ZHU Peiyi1, LU Zhenli1,2, PENG Weiwei1   

  1. 1. School of Electric and Automatic Engineering, Changshu Institute of Technology, Changshu Jiangsu 215500, China;
    2. State Key Laboratory of Robotics(Shenyang Institute of Automation, Chinese Academy of Sciences), Shenyang Liaoning 110014, China
  • Received:2015-10-29 Revised:2016-02-01 Online:2016-06-10 Published:2016-06-08
  • Supported by:
    This work is partially supported by the Suzhou Science and Technology Project (SYG201504).

基于LabVIEW的五子棋博弈算法

毛丽民1, 朱培逸1, 卢振利1,2, 彭伟伟1   

  1. 1. 常熟理工学院 电气与自动化工程学院, 江苏 常熟 215500;
    2. 机器人学国家重点实验室(中国科学院 沈阳自动化研究所), 沈阳 110014
  • 通讯作者: 毛丽民
  • 作者简介:毛丽民(1981-),男,江苏常熟人,讲师,硕士,主要研究方向:机器人控制、目标跟踪;朱培逸(1980-),男,安徽安庆人,讲师,博士,CCF会员,主要研究方向:智能控制、数据融合;卢振利(1974-),男,沈阳辽宁人,讲师,博士,CCF会员,主要研究方向:智能控制、机器视觉;彭伟伟(1993-),男,江苏盐城人,工程师,主要研究方向:数据采集、信号处理。
  • 基金资助:
    苏州市科技计划项目(SYG201504)。

Abstract: The current researches of Gobang man-machine game are mostly based on the computer, mobile phone, which are lacking real environments. In order to solve the problem, a game algorithm based on Laboratory Virtual Instrument Engineering Workbench (LabVIEW) was proposed, and was applied to Gobang man-machine game in real environment. Firstly, the state information of the chess board and the man-machine chess pieces location on both sides in the current state were obtained by the image acquisition system. Then the game situation was analyzed. In order to improve the efficiency of chess, the chess type was classified, and the original game algorithm was improved by using two weights of attack and defense to simplify the decision-making process. The experimental results of real game tests prove that the proposed algorithm based on LabVIEW can realize the Gobang man-machine chess fast and accurately.

Key words: Gobang, game, Laboratory Virtual Instrument Engineering Workbench (LabVIEW), man-machine game, robot

摘要: 针对目前五子棋人机对弈多数基于电脑、手机,缺少真实环境的问题,提出一种基于LabVIEW的博弈算法,并运用于真实的五子棋人机对弈。首先通过图像采集系统获取当前状态下棋盘及人机双方棋子的位置信息;然后对棋局的局势进行分析;同时为了提高下棋的效率,对棋型进行了分类,并对原有的博弈算法进行改进,采用进攻和防守两个权值简化决策过程。通过真实的对弈测试表明,基于LabVIEW的五子棋博弈算法能快速、准确地实现五子棋的人机对弈。

关键词: 五子棋, 博弈, LabVIEW, 人机对弈, 机器人

CLC Number: