摘要
基于对五子棋游戏规则的分析,设计了该游戏的算法,并选择Visual Studio 2008作为该软件的开发平台,实现了五子棋的多种对战模式,既可人与人对战,也可人与电脑对战,更增加了多人对战,多人机对战功能。还实现了无限步悔棋,自定义棋盘行列数,自动保存残局的功能。经测试,本游戏系统功能齐全,能平稳运行,具有较强的使用价值。
This paper designs algorithms of gobang based on the analysis of rules of the game. And Visual Studio 2008 is selected as the development platform of the software to achieve various battle modes of gobang, including man-man games and mancomputer games. What is more, functions like multiplayer and many man-machines against mode are added. Also, unlimited undo steps, customizing the number of row and column, and auto-saving of the mess are realized. After testing, the game system is fully functional, and operates smoothly with a strong use value.
出处
《巢湖学院学报》
2015年第6期33-38,共6页
Journal of Chaohu University
基金
国家大学生创新项目(项目编号:201412216024)
关键词
五子棋
思考算法
多人对战
人机对战
gobang
thinking algorithm
multiplayer games
man-machine mode