【编者按】网学网VC++频道为大家收集整理了“游戏程序设计(五子棋)“提供大家参考,希望对大家有所帮助!
附开题报告,外文翻译,文献综述,论文,设计,论文字数:12245,页数:31
摘 要
游戏设计已经成为现在社会的一种热门行业。五子棋是一种受大众广泛喜爱的游戏,其规则简单,变化多端,非常富有趣味性和消遣性。这里设计和实现了一个双人对下的五子棋单机游戏。主要应用了Visual C++编程来完成这个游戏的设计的。本文主要介绍了本游戏开发环境Microsoft Visual C++ 6.0,使用当前优秀的开发工具VC++编程。包含了五子棋程序的棋盘初始化、游戏规则、胜负判断方法。
关键词:初始化;规则;判断;
ABSTRAC
The game designed already becomes the present society one popular profession. The gobang is one kind the game which is widely liked the populace, its rule is simple, changeable, extremely rich interesting and recreational. Here designed and has realized one two person to under gobang single plane game. Mainly applied Visual the C++ programming to complete this game the design. This article mainly introduced this game development environment Microsoft Visual C++ 6.0, use current outstanding development kit VC++ programming. Has contained the gobang procedure checkerboard initialization, the game rule, the victory and defeat judgment method.
Key word: Initialization; Rule; Judgment;
目 录
第一章 引言 5
1.1国内外游戏的发展 5
1.2中国游戏发展的误区 5
1.3 政府大力扶持国产游戏 7
1.4有民族特色的游戏 8
第二章 系统开发工具和技术 10
2.1游戏设计环境简介 10
2.2 Viusal C++简介 13
2.2.1面向对象的基本概念 13
2.2.2面向对象的程序设计 15
2.3 类的介绍 18
第三章 五子棋游戏设计 19
3.1 模块分析 19
3.1.2棋盘初始化模块 20
3.1.3结局判断模块 22
3.2五子棋规则的实现 26
3.3界面设计 28
第四章 总结 30
参考文献 31