摘要: 五子棋游戏是源于古代中国的一款对弈游戏,有着源远流长的历史。它虽然源于古代中国,但是却发展于日本,风靡于欧洲。五子棋不仅能提升思文能力,增强智力水平,而且富含人生意义,有助于培养智慧。它不仅简单易懂,为广大群众所喜欢,而且又有高深的技巧和高质量的比赛;35467
本程序在设计过程中主要运用了Java编程语言、socket套接字技术等多种技术进行设计。主要功能涉及客户端连接服务器,新建,进入,退出游戏功能,服务器端与客户端接收发送与处理信息功能,在线用户信息显示并且实现信息的实时更新功能,服务器端处理客户端发来的消息,发送公共消息功能.判断胜负功能。
在最后测试的过程中,无论是显示界面还是功能实现,在初期都发现了不少的问题。不过经过编码修正,最后得到了满意的结果。
本程序实现了游戏双方的实时对弈,多客户与服务器的正常连接,在线用户信息的实时更新。
毕业论文关键词:五子棋;Java;面向对象
Playing chess online game
Abstract: Wuziqi is one of the traditional Chess species originated in ancient China. Currently Wuziqi has developed rapidly in the international arena. Foreigners are very optimistic about this humble intellectual game, and believe Wuziqi can not only improve thinking, develop intelligence and rich in philosophy, But also it has eastern mystical and western intuition.It is the meeting point of Chinese and Western cultures.
The program mainly used in the design process the Java programming language, socket design technology and other technologies.The main function involves in many aspects.Clients connect to the server, new, entry, exit game.The server and the client receives the transmission and processing of information.Online user’s information display and the program real-time update Online user’s information.Server handles messages sent by the client and send a public message.The program automatically determine the outcome.
During the final test, whether display interface or functions to achieve, in the early stages we have found a lot of problems. However, after correction coding, finally we got satisfactory results.
This program implements a real-time chess game between the two sides and normal connection multiple in clients and servers and live updating online user’s information. It has largely achieved the design requirements.
Key Words : Wuziqi;Java;object-oriented
目录
摘要 i
Abstract i
目录 iii
1 绪论 1
1.1 课题背景 1
1.2 本课题研究目的及意义 1
1.3 发展趋势 2
1.4 相关技术简介 2
1.4.1 面向对象程序设计方法 2
1.4.2 Java开发技术 3
1.4.3 Java详细介绍 3
1.4.4 Java开发环境 4
1.4.5 Java服务器端编程 6
1.4.6 五子棋简介 6
2 需求分析 8
2.1 实现目标 8
2.2 软件硬件需求 8
2.3 功能需求 8
2.4 用户需求分析 8
2.5 软件功能结构图 9
3 详细设计 11
3.1 概要设计 11
3.2 五子棋的详细分析 11
3.2.1 棋盘 11
3.2.2 走棋规则 12
3.3 游戏示意图 13
3.4 工程源代码总览 14
3.5 软件设计中使用到的JAVA软件包以及类和方法 15
3.6 系统模块详细分析 17 Java+socket在线五子棋游戏设计:http://www.youerw.com/jisuanji/lunwen_33429.html