文档介绍:学科分类号
本科学生毕业论文(设计)
题目(中文): 基于VC++的8数码游戏开发
(英文): The Development of  8 Digital Game
Based on VC++
姓名:
学号:
院(系): 计算机与通信工程系
专业、年级: 计算机科学与技术专业
指导老师:
2011年月日
目录
第1章绪论 1
1
1
2
3
第2章游戏开发工具与关键技术介绍 4
Visual C++概述 4
MFC 应用程序框架 5
6
第3章游戏的系统分析 7
7
7
8
9
第4章游戏功能模块设计 10
10
10
10
11
12
12
12
13
13
14
14
14
15
15
15
第5章游戏功能模块的具体实现 18
18
19
21
22
23
23
24
25
第6章游戏的数据测试 26
26
28
29
30
第7章总结和展望 31
参考文献 32
致谢 33
基于VC++的8数码游戏设计与开发
摘要
八数码游戏是在3×3方格盘上,放有八个数码,剩下一个位置为空,每一空格其上下左右的数码可移至空格。问题给定初始位置和目标位置,要求通过一系列的数码移动,将初始状态转化为目标状态。
作为本游戏的开发工具,Visual C++成为首选。它具有可视化的编程界面、详细的提示、以及完善的帮助文档,使得我在软件开发过程中少走了很多弯路,提高了我的开发效率。其中的MFC是由微软公司编写的一套专门用于 Windows 编程的 C++ 基础类库,它封装了 Windows API 的绝大多数功能,为用户开发 Windows 应用程序建立了一个非常灵活的应用程序框架。
本论文主要工作是该游戏的主要的功能模块的设计和实现:判断游戏是否有解,空白模块移动,自动演示模块,最优解搜索功能的实现,及鼠标交互操作的功能。其中最优解搜索功能主要是使用了A*算法来实现最短路径搜索。
【关键词】数码游戏 VC++ MFC A*算法最短路径搜索
The Design and Development of 8 Digital Game
Based on VC++
Abstract
Digital games are eight 3 × 3 grid on the plate, placed eight digital, leaving a position is empty, its top and bottom of each box can be moved around the digital given the initial position and target location, requiring a series of digital mobile, the initial state into a goal state.
As the game development tools, Visual C++ has a visual programming interface, the detailed tips, plete help documentation, made me less in the software development process take a lot of detours, improve the efficiency of my is one of a set of written specifically for Microsoft Windows P