摘要
本文设计并研发了一种基于智能算法的安卓五子棋应用程序,程序中包括两种模式:玩家对弈和人机对弈,其中在人机对弈模式中,程序一方采用α-β剪枝树算法实现。程序主要由界面显示及控制模块、玩家对弈模块、人机对弈模块和胜负判定模块组成。经过测试,程序具有较高智能程度,能够击败大多数业余选手,并且具有较好的人机交互界面和响应速度,兼顾了智能性与娱乐性。
This paper designs and develops an Android Gobang application program based on intelligent algorithm. The program includes two modes:player game and man-machine game. In the man-machine game mode,the program side uses α-β pruning tree algorithm. The program is mainly composed of interface display and control module,player game module,man-machine game module and win-loss judgment module. After testing,the program has a high degree of intelligence,can beat most amateur players,and has a better human-computer interaction interface and corresponding speed,taking into account the intelligence and entertainment.
作者
宋万洋
SONG Wanyang(Zhonghuan Information College,Tianjin University of Technology,Tianjin 300380,China)
出处
《现代信息科技》
2019年第11期92-93,97,共3页
Modern Information Technology