文档介绍:优秀设计
届别 2012届
学号 200814160237
毕业设计(论文)
基于VC的成三棋游戏程序的设计与实现
姓名杨剑
系别、专业计算机科学系、网络工程
导师姓名、职称曹清华、讲师__
完成时间 2012年4 月 8 日
目录
摘要 I
ABSTRACT II
1 绪论 1
1
2 系统实现技术与开发环境 1
C/C++简介 1
VC开发环境 2
GDI绘图 2
3
3
5
MFC编程思想 6
6
8
3 需求分析 8
8
8
8
4 系统概要设计 9
9
9
-R图设计 9
10
10
游戏者下棋实现模块 10
12
12
12
12
13
下棋阶段 13
行棋阶段 13
5 系统详细代码设计 13
游戏者登录管理模块 13
游戏者登录友好界面的实现 13
游戏帮助文档及基本规则的说明 16
游戏者下棋模块的实现 16
16
24
27
英雄榜的数据更新 29
网络模块的实现 31
32
32
32
6 游戏测试 38
登录的测试 38
下棋的测试 39
40
英雄榜的测试: 42
结束语 43
参考文献 44
致谢 47
摘要
随着科学技术(特别是计算机网络技术)日新月异的发展人们的生活也发生
了空前的变化。现在生活在大都市的人们总免不了想体验儿时那乡村乐趣,只是苦恨没有途径;从小在城市长大的孩子也想多一些趣味游戏,并且他们父母也希望孩子可以多了解了解农村生活以助于孩子的成长。
成三棋,一款乡村儿时游戏,将我们彼此拉近了距离,结合计算机网络技术使得城乡娱乐简易可行。
该游戏以vc++为基础平台,借鉴五子棋、象棋、围棋等多种棋种核心算法,采用网络套接字(Socket)技术,引用MFC类库及WIN API函数;实现友好的人机界面,网内对弈、单机对弈等多项功能。拥有浓浓的乡村风味、简易操作、强烈的娱乐性与趣味性。
关键词:VC/VC++;网络游戏;成三棋;广度搜索算法
ABSTRACT
With the dramatic development of science and technology especially working life has an unprecedented change. People who live in the metropolis can’t help to thinking of experiencing the fun of childhood again,but bitterly to find that time past and never find again. The children burn in the city also want to have more funny games,and to their parent,its very helpful for the children’growth to learn more about rural lives.
Three chess, a rural game played in childhood,puts us together,as well as makes rural entertainment more simple and practical working technology.
The game,based on VC++,has not only realized many functions,such as fortable interface between human beings and machine, petition and sing