中国象棋网上对弈系统论文+ppt.rar

RAR格式版权申诉手机打开展开

中国象棋网上对弈系统论文+ppt,摘要随着信息技术的发展,人民生活水平的不断提高。联网游戏作为一种娱乐手段,正以其独特的魅力吸引着越来越多的玩家。为了满足广大象棋爱好者也可以享受到网络所带来的便利,本设计在当前局域网条件下实现了中国象棋的网络对战。鉴于局域网的特点和游戏本身的要求,本设计采用两层c/s架构来实现相互之间的通信。它主要包含以下几大模块:网...
编号:20-207910大小:1.76M
分类: 论文>计算机论文

该文档为压缩文件,包含的文件列表如下:

内容介绍

原文档由会员 wanli1988go 发布

摘要
随着信息技术的发展,人民生活水平的不断提高。联网游戏作为一种娱乐手段,正以其独特的魅力吸引着越来越多的玩家。为了满足广大象棋爱好者也可以享受到网络所带来的便利,本设计在当前局域网条件下实现了中国象棋的网络对战。
鉴于局域网的特点和游戏本身的要求,本设计采用两层C/S架构来实现相互之间的通信。它主要包含以下几大模块:网络通信模块,图像绘制模块和规则设置模块。网络通信模块使得玩家可以方便的迅速建立起网络连接,从而实现联机对弈和聊天功能;图像绘制模块实现棋盘更新以及棋子动态表示等功能;规则设置模块用于约束玩家的棋步。
电脑游戏是计算机应用领域的一个重要主题,而当前网上最热门的休闲对战类游戏当属棋牌游戏。通过对象棋的数据结构,相关算法与网络联机,以及对网络对战平台系统的分析,设计成一套基于VC++平台的棋牌类对战系统。

关键词:网络通信;联机对弈;图像绘制;消息响应


CHINESE CHESS ONLINE GAME SYSTEM
Abstract
With the development of information technology, peoples standard of living have improved constantly. On-line game as a means of entertainment has a unique charm to attract more and more players. To meet chess lovers ,this design has realized the Challenges of Chinese-chess between players under the current LAN environment.
In view of the characteristics of local area networks and the requirements of the game itself, the design uses a two-tier C/S structure to achieve mutual communication. It contains the following major modules: the network communication module, image rendering module and the rules set up module. Network Communication Module allows gamers can quickly set up a convenient network connection in order to achieve an online game and chat function; image rendering module to update the board as well as functional pieces, such as the dynamic that; rules binding settings module for step-by-step player's game.
Computer games is the field of computer applications as an important subject, and present the most popular casual online games war among board games. By the data structure, algorithms and network online, as well as the network platform for systematic analysis of the war, designed a set of VC + + platform based on the category Card battle system.

Keywords: Network Communication; Online game; Image Rendering; Message Response
目 录
摘要 I
Abstract II
1绪论 3
1.1课题背景 3
1.2课题发展概况 3
1.3本文主要工作 4
2系统介绍 5
2.1系统简介 5
2.2 系统构成 5
2.3相关技术 5
2.3.1 点对点通信 5
2.3.2 TCP/IP协议 6
2.3.3 UPD基础 7
2.3.4屏幕作图与用户交互 7
2.3.5远程控制原理 8
3设计与实现 9
3.1数据结构 9
3.1.1棋盘 9
3.1.2棋子信息数组 10
3.1.3变量与函数 11
3.2图像绘制 12
3.2.1主窗口 12
3.2.2棋盘的绘制 12
3.2.3棋子的绘制及初始化 13
3.2.4动态显示 14
3.2.5回看功能 15
3.3规则设置 15
3.3.1棋子规则 15
3.3.2规则算法 15
3.4网络通信 17
3.4.1CCOM类 17
3.4.2数据代码 18
3.4.3数据更新 19
3.4.4聊天功能 19
3.5棋子操作 20
3.5.1获取点击 20
3.5.2走棋判断 21
3.5.3光标变化 21
4总结与展望 23
4.1总结 23
4.2展望 23
参考文献 24
致 谢 25

参考文献
[1] 周升锋.Visual C++ Windows程序设计[M].西安:西安交通大学出版社,1996.
[2] 苏羽,王嫒嫒.Visual C++网络游戏建模与实现[M].北京:北京科海电子出版社,2003.
[3] 葛垚.Visual C++ MFC棋牌类游戏编程实例[M].北京:人民邮电出版社,2008.
[4] 网冠科技.Visual C++.NET小游戏开发时尚编程百例[M].北京:机械工业出版社,2004.
[5] 陈建春.Visual C++ 高级编程技术开发实例剖析[M].北京:电子工业出版社,1999.
[6] 涂光平.Visual C++.NET基础教程与上机指导[M].北京:清华大学出版社,2005.
[7] 伍红兵.Visual C++ 编程深入引导[M].北京:中国水利水电出版社,2002.
[8] 刘海英.Visual C++网络通信编程[M].北京:人民邮电出版社,2004.
[9] 胡峪,刘静.VC++高级编程技巧与实例[M].西安:西安电子科技大学出版社,2001.
[10] 源江科技.VC编程技巧280例[M].上海:上海科学普及出版社,2002.4
[11] 张恒博.VB在网络中的一种应用—双人象棋[J].大连民族学院学报,2000.(4).2.2.
[12] 谢志鹏.带大厅的网络象棋游戏设计和实现[J].华侨大学学报,2004.(9).
[12] 王华.局域网常用技术[M].北京:机械工业出版社,1996.3.
[13] 汪晓平.VC6.0网络通信协议分析及应用实现[M].北京:人民邮电出版社,2003.2
[14] 黄强.WINDOWS网络编程[M].北京:人民邮电出版社,2003.1
[15] Anthony Jones.Jim Ohlund,Windows 网络编程[M].北京:清华大学出版社,2004.3
[16] James P. Cohoon, Jack W. Davidson.C++ program design[M].Boston:McGraw-Hill, 2002.
[17] Walter Savitch. Problem solving with C++ [M].北京:高等教育出版社,,2006.
[18] H.M.Deitel,P.J.Deitel. Small C++ how to program [M]. Beijing Posts & Telecom Press 2006.
[19] Allis L V. Searching for solutions in games and artificial intelligence[D]. University of Limburg,Maastrieht,The Netherlands, 1994.
[20] Chad Z.Indy in depth[M].ATOZED SOFTWARE.2003-01