- 1、本文档共55页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 基于电化学使用的饮水机水质监测报警器设计(毕业论文毕业设计)初版.doc
- 宁波嵊州高速公路成功岭隧道施工组织设计指南.doc
- 医院药品管使用理系统的设计与实现初版.doc
- 转换层模板及支撑施工方案总结.doc
- 青岛市胶州使用超限超载1类检测站施工组织设计土木工程施工组织设计毕业论文-初版.doc
- 2.使用;772万吨年苯-甲苯连续精馏装置工艺设计_精馏塔设计说明书_化工设计初版.doc
- 基于STC89C52单片机音乐播放器的设计全套.doc
- 乌苏镇灌区渠首泵站施工组织设计全套.doc
- 年产160使用万吨水泥厂毕业设计论文(重点车间-水泥磨)初版.doc
- 基于Android的玉米病虫草害诊断系统的研究-毕业论文总结.doc
- 四川省成都市新都一中2025届高三生物9月月考试题.doc
- 徐州专版2024中考化学复习方案第6章溶解现象课时训练13物质的溶解性试题.docx
- 四川省达州市2024高三数学一诊考试试题文扫描版.doc
- 四川省自贡市田家炳中学2024_2025学年高一地理下学期期中试题含解析.doc
- 浙江鸭2025届高考历史学业水平考试专题四古代希腊罗马的政治文明第11讲古代希腊的民主政治含解析.doc
- 2024年高考物理真题和模拟题分项汇编专题13交流电含解析.doc
- 四川省眉山市仁寿第二中学等四校2024_2025学年高一英语下学期5月期中试题.doc
- 广东诗莞市2025届九年级物理上学期期末考试试题无答案沪粤版.doc
- 四川省绵阳市南山中学2024_2025学年高一生物上学期12月月考试题.doc
- 2025届高考生物艺考生大二轮总复习上篇专题十实验与探究第17讲实验与探究高频命题点2实验分析设计评价教学案.doc
最近下载
- 小学校创客及人工智能教育典型案例.docx
- 变电运行试题题库.pdf VIP
- 2023年新疆大学软件工程专业《数据结构与算法》科目期末试卷B(有答案).docx VIP
- JC08心理咨询技能单科作业题(新版教材考生通用_202305月考生适用).pdf
- 七人学生小品《如此课堂》剧本台词手稿.doc
- 部级基础教育精品课PPT模板.pptx
- 采埃孚商用车及工程机械产品专用油品手册.PDF
- QGDW10270-2017-220kV及110(66)kV输变电工程可行性研究内容深度规定.pdf
- 2022知到答案 军事理论(同济大学) 智慧树满分章节测试答案.docx
- 口腔CBCT管理制度-操作规程.docx
文档评论(0)