软件技术基础五子棋程序设计 2.doc
文本预览下载声明
目 录
摘 要 ……………………………………………………………………………………… II
Abstract …………………………………………………………………………………... II
1 绪论 …………………….……………………………………………………………….1
1.1 课题背景 …………………………………………………………………………....1
1.2 课程设计的目的…………………………………………..………………………… ...1
2 设计方案简述 ………………………………………..………………………………. 2
2.1 可行性分析………………………………………………..……………………………2
2.2 需求分析…………………………………………………..……………………………2
3 详细设计……………………………………………………………..………………….2
3.1窗体设计………………………………………………..……………………………….3
3.2游戏项目开发………………………………………..………………………………….4
3.2.1棋牌设置…………………………………………………………………………..…...5
3.2.2放置棋子功能的开发………………………………………………………………….5
3.3.3游戏获胜决断的开发…………………………………………………….……………11
3.2.4游戏的调试与运行………………………………………….………………..19
4 设计结果及分析………………………………………………..…….…………………20
4.1 程序的结果……………………………………….…………………………………….20
4.2结果分析…………………………………………..…………………………………….22
5总 结 ……..…………………………………………………..……………………………22
参考文献 …….………………..………………………………..……………………………22
摘 要
网络游戏的出现代表了一种全新娱乐方式的诞生。目前网络游戏正以其独特的魅力吸引着众多的玩家。随着游戏产业的蓬勃发展,将需要越来越多的人加入到游戏开发中来。
本毕业设计所完成的五子棋游戏(网络版)是在Windows XP下使用Microsoft Visual C++6.0开发的C/S系统,可以实现网络间的双人对战,并且可以提供多媒体播放功能。系统的多媒体播放功能可以播放MP3、WMA等主流格式的音乐。
本论文从基本网络套节字开始入手,介绍了一些本系统相关的理论知识,随后详细介绍了五子棋游戏(网络版)的开发过程。包括服务器端、客户端的socket编程,五子棋服务器和客户端通信的实现,五子棋判断算法的实现,主界面视图,多媒体播放以及定时器等附加功能的实现。最后对系统进行测试并对所做工作进行总结。
关键词 程序设计;Fivechess;MFC;
Abstract
Abstract
On-line games bring to a new form of entertainment. Until now, on-line games is charming more and more players. As the development of game industry, there will be more and more developers join in the game development team.
The?on -line BlackWhite game was developed by Microsoft Visual C++6.0 on Windows XP platform. In this game, two people can play the game on line, and the game also provides multimedia player function.
The thesis start with introduction of network socket programming, the development processing of the?on -line BlackWhite game are introduced in detail as followed. The thesis have a full touch on server and client socket programming, the communication between server and client was implemented
显示全部