C语言图形五子棋课程设计报告
《C语言图形五子棋课程设计报告》由会员分享,可在线阅读,更多相关《C语言图形五子棋课程设计报告(39页珍藏版)》请在毕设资料网上搜索。
1、 1 C 语言课程设计报告 五子棋 摘 要 五子棋是一种两人对弈的纯策略型棋类游戏, 应用 C 语言编写程 序可以在计算机上实现二人对弈五子棋功能。 二人对弈五子棋程序由 图像生成、光标移动与落子、判断胜负和系统帮助等子程序构成;程 序中应用了结构体、数组、全局变量、按键处理和图形编程等元素和 语句。程序通过棋盘和棋子图像生成、二人移子与落子和判断胜负等 功能的实现,在计算机上实现了二人五子棋对弈。 Abstract Gobang is a traditional checker-type game in which the lining up of five pieces in a stra
2、ight line scores victory. And C language can accomplish a 2-player gobang on computers. This 2-player gobang program contains 4 main sections, they are, graphics, movement and selection, victory judgment and helping system. Several elements and sentences of C programming language such as structural
3、element, array, global variables, press processing and Graphics Programming are also applied in the program. With the accomplishment of the three main subprograms, namely, checker board and pieces construction, players 2 step-selection and victory judgment, a whole program of gobang is established a
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言 图形 五子棋 课程设计 报告
