计算机中国象棋网络对弈软件毕业设计全套.doc

计算机中国象棋网络对弈软件毕业设计全套.doc

  1. 1、本文档共55页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要 中国象棋网络版是一款可以实现多人同时在线的网络对弈象棋软件。 中国象棋网络版采用C/S架构,由跨平台的Java语言和MySQ L数据库开发,在开发过程中使用了多线程、java swing、Socket编程以及TCP和UDP协议等技术。中国象棋网络版提供了:棋友状态列表,弈棋邀请,观看他人弈棋,棋谱记录和保存,在线交流,快速注册等功能。服务端提供了:发布系统消息提示,服务器状态显示,在线棋友管理等功能。最后,对系统进行测试表明,系统功能达到了预期的要求,实现与同类的象棋软件如QQ象棋类似的功能,具有界面友好,操作简便,运行稳定的特点,完成设计要求的功能。本系统不足之处在于没有实现人机对弈、聊天记录的本机存储,将在以后的更新版本中逐步完善。 关键词: 对弈,Java,多线程 Abstract Chinese chess online is a software can support multiplayer play chess online at the same time . The chinese chess online, based on the architecture of C/S, is developed by MySQL database and Java, a cross-platform language. In the development, multi-thread, Java swing, Socket programming and TCP/UDP protocol are applied. First, the newer can fast register and then get an account in the network version. The players can invite others to join, watch others playing, communicate with others online and hold chess-playing records. Of course ,there exists a status bar to check the states of all chess players. Here the service releases the notes of the system information, displays the state of itself, and deal with chess players online, etc. The test of the system indicates, all the expected functions have been realized. It has the similar functions just like the QQ chess, an online software of kind. The interface is on good terms, and the operation is easy, and also it runs stably. However, disappointingly, the computer cant be an opponent of the players, and the users computer cant keep the chat records itself. These are both the weak points and the improvements will be made in the new version. Keywords: chess-playing , Java, Multithreading 目 录 1. 前 言 1 1.1 课题的研究目的和意义 1 1.2开发和运行环境 1 1.2.1开发环境 1 1.2.2运行环境 1 2.Java和网络套接字技术 2 2.1 Java简介 2 2.2 Java图形技术 2 2.3 Java事件响应技术 4 2.3.1鼠标事件响应 4 2.3.2键盘事件响应 4 2.4 网络网络通信技术 4 2.4.1 TCP 4 2.4.2 UDP 4 2.4.3 Socket 5 2.4.4 Java实现 5 3.中国象棋网络版架构设计与通信设计 7 3.1 中国象棋网络版架构分析与设计 7 3.2中国象棋网络版数据通信设计与实现 7 3.2.1通信协议选择 7 3.2.2数据类型分析 9 3.2.3数据格式设计 11 3.2.4数据通信与处理伪码示例 13 4.中国象棋网络版客户端实现 16 4.1客户端基础架构 16

您可能关注的文档

文档评论(0)

taotao0b + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档