C五子棋游戏开发.doc
《C五子棋游戏开发.doc》由会员分享,可在线阅读,更多相关《C五子棋游戏开发.doc(4页珍藏版)》请在三一办公上搜索。
1、C五子棋游戏开发 目录前言11预备知识 211计算机图形学方面的知识 2111基本的C作图方法及主循环控制模块 2112图形模式下的文本输出 2125子棋基本数据结构 3121栈 3122树 42单人游戏 7 21开发的基本步骤 7211系统流程图 7212建立棋盘 822电脑最优落子点的算法 8221最大值点法 9222最优落点方法 10223搜索算法及其改进算法 17224.3种算法的比较与选择2523编程实现 253双人游戏 26参考文献28致谢29附录:部分源代码30摘要C语言是1种结构化语言,尽管在当前,可视化语言发展迅速,普及很快,但C语言作为1
2、种基础的语言,它的优势依然存在,甚至有时它是不可替代的,特别是和硬件接口技术相联系的软件。5子棋游戏是1种简单的大众的游戏,自从计算机实现以来,深受广大电脑玩家的喜爱,但是现在流行的5子棋游戏软件大多缺乏美观的界面,和容易的操作方法,电脑的AI值也不是很高。本文通过C语言在计算机图形学方面的编程,设计了5子棋游戏软件,使该软件具有美观友好的界面,在人机对弈时,使电脑具有较高的智商。 本游戏是以Turbo C 2.0语言作为开发工具,采用搜索及其改进的-剪枝算法设计最优落子点开发的游戏软件。本文详细地介绍了5子棋游戏软件设计的全过程,描述了该软件的功能,以及和
3、其他5子棋程序的1些比较。关键词:结构化语言;最优落子点算法;搜索算法;-剪枝算法。AbstractC language is a structured language, although in the current visualization language rapidly, and spread quickly, but the C language as a basis for language, its advantages still exist, and sometimes it is irreplaceable, particularly hardware and soft
4、ware interfaces are linked. Gobang game is a simple and popular game, since the computer to achieve, by the love of computer players, but now most popular game software Gobang lack aesthetic interface, and easy method of operation, the value of the computer AI is not high. The adoption of the C prog
5、ramming language in computer Graphics, designed Gobang game software to enable the software with a beautiful and friendly interface in both game, the computer has a higher IQ. The game is based on turbo c 2.0 language, using searching algorithm and -cut algorithm to de
6、sign best Gobang. The detailed presentation of the whole process of Gobang game software design, describes the software functions and procedures and other Gobang some more. Keywords : structured language;best algorithm;searching algorithm;-cut algorithm. &nbs
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 五子棋 游戏 开发

链接地址:https://www.31ppt.com/p-2384575.html