网络版斗地主游戏程序
院 系
专 业
班 级
学 号
姓 名
指导教师
负责教师
沈阳航空航天大学
2011年6月
摘 要
网络游戏是一种新型的 IT产业。我们研究主要内容是网络软件设计方法,并以局部网内联众游戏为模型,开发.NET框架下网络版的扑克牌软件。本文的研究目的是在实践中学习游戏软件编写过程,真正了解网络编程 c/s 通信的各种可行性方法之一。
本文隶属网络扑克牌游戏设计系统中的子课题---扑克牌游戏服务器与客户端的通讯模块。首先介绍网络扑克牌游戏设计系统开发环境,通信方面的编程使用,并对扑克牌游戏 c/s 模式进行问题分析,然后给出解决问题涉及到的关键技术,接着利用软件工程设计思想,从系统需求分析着手,编写总体设计,详细设计文档,深入分析并设计扑克牌游戏 c/s 模式的应用,并利用面向对象的设计方法完成模块的过程,最后是系统测试和下一步的工作。
本设计以一副牌规则为准.本论文讲述了网络斗地主的游戏算法的设计,游戏通讯部分的开发(多线程,socket)的设计过程。本设计采用Microsoft Visual 2005/C#作为开发工具,结合socket 编程。设计过程中,首先建立系统的应用模型,然后在此基础上进行需求迭代,详细设计时不断地修正和完善,经过测试阶段反复调试和验证,最终形成达到设计要求的可行系统。
关键词:网络斗地主;服务器;客户机;socket编程;
Design and Implementation of landlords game program online
Abstract
Online Games is a new IT industry. Our study is the Internet software design methods, and to the local net ourgame as a model to develop. NET Framework online version of poker software. This study aimed at learning the game software development process, a real understanding of network programming c/s communication of all the possible methods.
This poker game under the network design sub-system issues --- poker game server and the client communication module. Internet poker game design first introduced the system development environment, communications, programming use and poker game c/s mode of problem analysis, and then gives the key to solving problems related to technology, then using software engineering design, from the system needs analysis to proceed, the preparation of design, detailed design documents, in-depth analysis and design poker game c/s mode of application and use of object-oriented design methods to complete the module design and implementation process, and finally system testing and the next step work.
This design with a deck rules shall prevail. This essay about network doudizhu game algorithm design, the development (game communications part socket), the design of multithreaded process. This design uses the Microsoft Visual 2005 c# as development tools, combining socket programming. Design process, the application of the system model is established, and then based on the detailed design requirement iteration, constantly correction and perfect when, after testing phase repeated commissioning and validation, and finally from the feasible system to meet the design requirements.
Keywords: network doudizhu; The server. The client; Socket programming;
目 录
1 绪论 1
1.1 网络游戏的发展及研究现状 1
1.1.1 网络游戏的起源和发展 1
1.1.2 国内外研究现状 3
1.2 网络版斗地主的系统实现方法 4
1.2.1 网络编程 4
1.2.2 Visual Studio编程平台及其发展 5
1.3 小结 9
2 需求分析 10
2.1 任务背景及目标 10
2.2 任务功能分析 11
2.3 系统开发技术 12
2.3.1 Windows Socket通信技术 12
2.3.2 多线程技术 13
2.4 小结 14
3 软件设计与实现 15
3.1 总体设计 15
3.2 网络模块 16
3.2.1 网络模块功能及原理 16
3.2.2 网络模块 18
3.3 游戏规则模块 19
3.3.1 游戏规则模块的功能及原理 19
3.3.2 游戏规则模块的算法设计与实现 19
3.4 用户控制模块 21
3.4.1 用户控制模块功能及原理 21
3.4.2 用户控制模块的算法设计与实现 21
3.5 小结 23
4 软件测试和运行 24
4.1 实验环境 24
4.2 运行结果 24
参考文献 29
致 谢 30
1 绪论
网络游戏是近年来十分活跃的技术研究领域,是一系列高新技术的汇集,指以互联网为传输媒介,以游戏运营商服务器和用户计算机为处理终端,以游戏客户端软件为信息交互窗口的旨在实现娱乐、休闲、交流和取得虚拟成就的具有可持续性的个体性多人在线游戏这些技术包括计算机图形学、多媒体技术、人工智能、人机接口技术、传感技术以及高度并行的实时计算技术,还包括人的行为学研究等多项关键技术。
1.1 网络游戏的发展及研究现状
1.1.1 网络游戏的起源和发展
第一款真正意义上的网络游戏可追溯到1969年,当时瑞克·布罗米为PLATO(Programmed Logic for Automatic Teaching Operations)系统编写了一款名为《太空大战》(SpaceWar)的游戏,游戏以八年前诞生于麻省理工的第一款电脑游戏《太空大战》为蓝本,不同之处在于,它可支持两人远程连线。PLATO是历史上最为悠久也是最著名的一套远程教学系统,由美国伊利诺斯州厄本姆的伊利诺斯大学开发于上世纪60年代末,其主要功用是为不同教育程度的学生提供高质量的远程教育,它具有庞大的课程程序库,可同时开设数百门课,可以记录下每一位学生的学习进度。PLATO还是第一套分时共享系统,它运行于一台大型主机而非微型计算机上,因此具有更强的处理能力和存储能力,这使得它所能支持的同时在线人数大大增加。1972年,PLATO的同时在线人数已达到1000多名。
有趣的是,1969年也正是ARPAnet(Advance Research Projects Agency Network)诞生的年份。大家知道,ARPAnet是美国国防部高级研究计划署研制的世界上首个包交换网络,它的成功直接促成了互联网以及传输控制协议(即TCP/IP)的诞生。
第二代网络游戏的主流计费方式是按小时计费,尽管也有过包月计费的特例,但未能形成气候。1978
上一篇:
网上购物系统论文word
下一篇:
高级氧化技术在水处理中的应用(重庆大学城市建设与环境工程学院《高等水化学》课程论文)