摘 要
游戏设计已经成为现在社会的一种热门行业。五子棋是一种受大众广泛喜爱的游戏,其规则简单,变化多端,非常富有趣味性和消遣性。这里设计和实现了一个双人对下的五子棋单机游戏。主要应用了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;
目 录
第一章引言51.1国内外游戏的发展51.2中国游戏发展的误区51.3 政府大力扶持国产游戏71.4有民族特色的游戏8第二章系统开发工具和技术102.1游戏设计环境简介102.2 Viusal C++简介132.2.1面向对象的基本概念132.2.2面向对象的程序设计152.3 类的介绍18第三章五子棋游戏设计193.1 模块分析193.1.2棋盘初始化模块203.1.3结局判断模块223.2五子棋规则的实现263.3界面设计28第四章总结30参考文献31鸣 谢32