中国象棋网上对弈系统--毕业论文

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

本科毕业设计(论文)I中国象棋网上对弈系统摘要随着信息技术的发展,人民生活水平的不断提高。联网游戏作为一种娱乐手段,正以其独特的魅力吸引着越来越多的玩家。为了满足广大象棋爱好者也可以享受到网络所带来的便利,本设计在当前局域网条件下实现了中国象棋的网络对战。鉴于局域网的特点和游戏本身的要求,本设计采用两层C/S架构来实现相互之间的通信。它主要包含以下几大模块:网络通信模块,图像绘制模块和规则设置模块。网络通信模块使得玩家可以方便的迅速建立起网络连接,从而实现联机对弈和聊天功能;图像绘制模块实现棋盘更新以及棋子动态表示等功能;规则设置模块用于约束玩家的棋步。电脑游戏是计算机应用领域的一个重要主题,而当前网上最热门的休闲对战类游戏当属棋牌游戏。通过对象棋的数据结构,相关算法与网络联机,以及对网络对战平台系统的分析,设计成一套基于VC++平台的棋牌类对战系统。关键词:网络通信;联机对弈;图像绘制;消息响应本科毕业设计(论文)IICHINESECHESSONLINEGAMESYSTEMAbstractWiththedevelopmentofinformationtechnology,peoplesstandardoflivinghaveimprovedconstantly.On-linegameasameansofentertainmenthasauniquecharmtoattractmoreandmoreplayers.Tomeetchesslovers,thisdesignhasrealizedtheChallengesofChinese-chessbetweenplayersunderthecurrentLANenvironment.Inviewofthecharacteristicsoflocalareanetworksandtherequirementsofthegameitself,thedesignusesatwo-tierC/Sstructuretoachievemutualcommunication.Itcontainsthefollowingmajormodules:thenetworkcommunicationmodule,imagerenderingmoduleandtherulessetupmodule.NetworkCommunicationModuleallowsgamerscanquicklysetupaconvenientnetworkconnectioninordertoachieveanonlinegameandchatfunction;imagerenderingmoduletoupdatetheboardaswellasfunctionalpieces,suchasthedynamicthat;rulesbindingsettingsmoduleforstep-by-stepplayer'sgame.Computergamesisthefieldofcomputerapplicationsasanimportantsubject,andpresentthemostpopularcasualonlinegameswaramongboardgames.Bythedatastructure,algorithmsandnetworkonline,aswellasthenetworkplatformforsystematicanalysisofthewar,designedasetofVC++platformbasedonthecategoryCardbattlesystem.Keywords:NetworkCommunication;Onlinegame;ImageRendering;MessageResponse本科毕业设计(论文)目录摘要..................................................................................................................................................IAbstract..........................................................................................................................................II1绪论..............................................................................................................................................31.1课题背景...................................................................................................................................31.2课题发展概况.........................................................................................................................31.3本文主要工作...........................................................................................................................42系统介绍......................................................................................................................................52.1系统简介...................................................................................................................................52.2系统构成..................................................................................................................................52.3相关技术...................................................................................................................................52.3.1点对点通信..........................................................................................................................52.3.2TCP/IP协议..........................................................................................................................62.3.3UPD基础..............................................................................................................................72.3.4屏幕作图与用户交互.........................................................................................................72.3.5远程控制原理......................................................................................................................83设计与实现..................................................................................................................................93.1数据结构...................................................................................................................................93.1.1棋盘.......................................................................................................................................93.1.2棋子信息数组......................................................................................................................103.1.3变量与函数..........................................................................................................................113.2图像绘制.................................................................................................................................123.2.1主窗口..................................................................................................................................123.2.2棋盘的绘制..........................................................................................................................123.2.3棋子的绘制及初始化..........................................................................................................133.2.4动态显示........................................................................................................

1 / 27
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功