计算机应用 | 古代文学 | 市场营销 | 生命科学 | 交通物流 | 财务管理 | 历史学 | 毕业 | 哲学 | 政治 | 财税 | 经济 | 金融 | 审计 | 法学 | 护理学 | 国际经济与贸易
计算机软件 | 新闻传播 | 电子商务 | 土木工程 | 临床医学 | 旅游管理 | 建筑学 | 文学 | 化学 | 数学 | 物理 | 地理 | 理工 | 生命 | 文化 | 企业管理 | 电子信息工程
计算机网络 | 语言文学 | 信息安全 | 工程力学 | 工商管理 | 经济管理 | 计算机 | 机电 | 材料 | 医学 | 药学 | 会计 | 硕士 | 法律 | MBA
现当代文学 | 英美文学 | 通讯工程 | 网络工程 | 行政管理 | 公共管理 | 自动化 | 艺术 | 音乐 | 舞蹈 | 美术 | 本科 | 教育 | 英语 |

网上对弈系统的开发与设计VC++

2016-03-30 01:04
导读:计算机应用论文论文,网上对弈系统的开发与设计VC++论文样本,在线游览或下载,科教论文网海量论文供你参考:毕业
毕业

目录
前言 1
1 绪论 2
1.1 5子棋简介 2
1.1.1 5子棋的发展历史 2
1.1.2 5子棋的胜负概念和基本规则 2
1.1.3 5子棋的基本知识和术语解释[2] 2
1.2 中国现代5子棋发展现状及其问题 3
1.2.1 世界现代5子棋的发展情况 3
1.2.2 中国现代5子棋的发展现状 3
1.2.3 中国5子棋发展所面临的问题 4
1.3 发展计划及解决方法 4
1.3.1 中国5子棋的发展途径 4
1.3.2 解决问题的可行性方法 4
2 设计采用技术 5
2.1 TCP/IP参考模型概述[6] 5
2.1.1 TCP/IP参考模型的发展 5
2.1.2 TCP/IP协议的特点 5
2.1.3 TCP/IP参考模型各层 5
2.2 TCP/IP参考模型各层的功能 5
2.2.1 主机-网络层 5
2.2.2 互连层 5
2.2.3 传输层 6
2.2.4 应用层 6
2.3 Winsock概述 6
2.4 编程语言Visual C++ 6.0 8
2.4.1 Visual C++ 6.0概述 8
2.4.2 MFC概述 9
3 需求分析 12
3.1 对系统的综合要求 12
可靠性和可用性需求 12
3.2 分析建模 13
4 总体设计 15
4.1 系统框架搭建 16
4.2 模块简单分析 16
5 函数设置与资源编辑 18
5.1 资源编辑 18
5.2 人机对战 19
5.3 连机对战 20
6 软件的详细设计 22
6.1 棋盘设置 22
6.1.1 棋盘大小设置 22
6.1.2 初始化变量 23
6.1.3 画棋盘 23
6.2 鼠标设置 24
6.3 下棋设置 24
6.3.1 下棋操作 26
6.3.2 判断结束 27
6.4 人机对弈 (须参照附录1) 27
6.4.1 在指定位置下棋 29
6.4.2 搜索最佳落棋点 29
6.4.3 最大值函数的实现: 31
6.5 联机实现 (须参照附录2) 32
6.6 发送与接收信息 35

(转载自中国科教评价网www.nseac.com )


6.6.1 发送信息 36
6.6.2 接收信息 37
6.7 时器函数 40
7 软件测试 42
结束语 45
参考文献 47
致谢 48
附录1 49
附录2 60

网上对弈系统的开发与设计
 

摘要:互联网以前所未有的速度发展成为继报纸、广播、电视之后的第4大媒体,并以其便捷的信息传输形式改变着人们以往的娱乐生活。网络游戏使用简单、快捷、低成本、易于推广,它的普遍应用已经成为网络娱乐的大势所向。网络对弈是其中的1个重要分支。能够摆脱地域和时间的限制进行对弈活动吸引了大量的弈棋爱好者,逐渐拥有了庞大的用户群。网络对弈的发展使弈棋这1古老的活动更加便于推广,越来越多的年轻人加入到这个大家族中来。用户群的庞大也促进了网络对弈软件的发展。网络对弈程序越来越来美观,功能也越来越复杂。但1个网络对弈程序最基本的功能只有3点:对弈、连机、通讯。本文以1个简单的网络5子棋游戏为例,主要介绍了网上对弈系统的设计开发的整个过程。文中程序使用VC++6.0编程语言编写,实现了1般网络5子棋远程对弈和即时通话的基本功能。同时对网络通讯协议(TCP/IP)、WinSock及VC++6.0编程语言作了简单介绍。


关键词:网上对弈;5子棋;MFC

 

The Design and Implement of Network Playing Chess System
 

Abstract: The Internet develops into after the unprecedented speed continues the newspaper, the broadcast, the television fourth big media, and is changing peoples former entertainment life by its convenient intelligence transmission form. The network game uses simply, quick, the low cost, easy to promote, its universal application already became the network entertainment the situation to approach. The network playing chess is a important branch. Could get rid of the region and the time limit carries on playing chess to attract massively has played chess the amateur, had the huge user group gradually. The network playing chess development causes to play chess this ancient activity even more to be advantageous for the promotion, more and more many young people join to this respected family in. The user group huge also promoted the network playing chess software development. The network playing chess procedure more and more comes artisticly, the function more and more is also complex. But a network playing chess procedure most basic function only then three points: Playing chess, on-line, communication. This article take a simple network gobang game as an example, mainly introduced on the net plays chess the system design development entire process. In the article the procedure uses the VC++6.0 programming language compilation, has realized the common network gobang long-distance playing chess and the immediate telephone conversation basic function. Meanwhile to network communication agreement (TCP/IP), WinSock and the VC++6.0 programming language has made the simple introduction.

Keywords:  Network playing chess;Gobang;MFC

前言 (转载自http://zw.NSEAC.com科教作文网)
网上对弈系统是指能够实现网上对弈的平台。起初这些平台少而且简陋,在经过近10年的发展,网上对弈系统已经达到了极致;功能完善、界面华丽,再想改进已经很困难了。
网上对弈系统的范围很广,因此选择了相对简单的网络5子棋来进行研究和开发。研究网络5子棋可以熟悉程序开发的流程以及网络编程需要注意的重要事项,为了以后编写更大型的网络程序积累经验。
本文中将对单机对战、人机对战、连机对战进行研究和说明。

    上一篇:基于WEB的校园学生档案管理系统ASP+SQL 下一篇:没有了