The development of computer-based algorithms based on gobang game
Abstract
Gobang is a worldwide two-player strategy board game, which is popular especially in the Asian region. Recently, the science and technology has been developing fast and artificial intelligence was applied in numerous fields like the board game. Gobang, a strategy game with moderate difficulty, is a suitable example for people to test algorithms and solve board game problems. As a result, many related algorithms were appearing with different advantages and disadvantages. In this work, these already existed algorithms, game tree, minimax search, alpha-beta pruning, genetic algorithm and monte carlo tree search, were discussed and compared. The results and comparison showed that game tree and minimax search had a large number of nodes to calculate to reach a suitable search depth, about 1.00E+12 and 1.29E+14 respectively, which meant they need a long calculating time, while the alpha-beta pruning need to calculate about 2.2E+07 nodes and genetic algorithm only need to calculate about 1.00E+04 nodes, which cost 0.6 seconds for every move. Plus, the monte carlo tree search could reach nearly 100% win rate through self-play, which making gobang algorithm become more refined. Additionally, these algorithms had already made gobang AI powerful with fast move and high win rate, so they also had been applied in many different fields to develop and spread gobang.
References
- Sakata G et al. 1981 Five-in-a-row Renju: For Beginners to Advanced Players Ishi Press
- Wikipedia 2022 Gomoku https://en.wikipedia.org/wiki/Gomoku
- Wikipedia 2022 Mnk-game https://en.wikipedia.org/wiki/Mnk-game
- Allis L V 1994 Searching for solutions in games and artificial intelligence Wageningen: Ponsen & Looijen
- Wágner J et al. 2001 Solving renju ICGA journal 241 30-35
- Shannon C E 1950 XXII Programming a computer for playing chess The London Edinburgh and Dublin Philosophical Magazine and Journal of Science 41314 256-275
- Edwards D J 1961 The alpha-beta heuristic DSpace@MIT
- Holland J H 1992 Adaptation in natural and artificial systems: an introductory analysis with applications to biology control and artificial intelligence MIT press
- Wang J et al. 2014 Evolving Gomoku solver by genetic algorithm 2014 IEEE Workshop on Advanced Research and Technology in Industry Applications (WARTIA)
- Metropolis N et al. 1949 The monte carlo method Journal of the American statistical association 44247 335-341
- Coulom Rémi 2009 The monte-carlo revolution in go The Japanese-French Frontiers of Science Symposium (JFFoS) Roscoff France Vol 115
- Li Xiali et al 2019 A game model for Gomoku based on deep learning and monte carlo tree search Chinese Intelligent Automation Conference Springer Singapore
- Zheng J L 2019 Research and Implementation of Gobang Intelligent Game Algorithm Based on Minimax Search and Alpha Beta pruning Algorithm Journal of Wenzhou University (Natural Science Edition) 4003 53-62
- Lin Y M 2013 Design and Implementation of Gobang Online Game Based on MFC Socket Applied Mechanics and Materials Vol 380 Trans Tech Publications Ltd
- Li M Z 2021 Research on the Recommendation System of Gobang Game Based on Machine Learning The 2nd International Conference on Computing and Data Science