资源描述:
《基于java的_网络版五子棋_游戏的设计和实现毕业设计.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、摘要目前,随着计算机网络的发展,以计算机技术和网络技术为核心的现代网络技术已经在现实生活和生产中得到了广泛的使用,休闲类网络游戏集趣味性,娱乐性,互动性和益智性于一体,已经成为多数人群的休闲方式,也为多数人所喜好。本设计收集了关于JAVA基础的书籍,着重收录了关于SOCKET编程的内容,找到了五子棋概述和规则的资料,查阅了网络通信技术的相关论文,同时也参考了很多关于五子棋实现的程序资料以及关于JAVA开发工具的介绍的文档。在期间,作者学习了多线程技术、数据传输技术、SOCKET编程技术,研究了网络通信原理、JAVA编写原
2、理等一系列的原理。开发了五子棋网络对战的代码,实现了网络聊天、联机对战、网络通信、界面组织如:棋盘、建立服务器、连接到服务器等功能。通过对以上技术的学习和研究,利用SOCKET编程,能服务器与客户端之间的连接,利用多线程技术完成了服务器端与客户端之间的数据传输、网络通信,使得两个客户端能够同步的进行处理。关键词:JAVA多线程SOCKET五子棋AbstractAtpresent,withthedevelopmentofcomputernetworks,computerandnetworktechnologyastheco
3、reofmodernnetworktechnologyhasbeenwidelyusedinreallifeandproduction,thecasualgamesetinteresting,entertaining,interactiveandpuzzleinone,hasbecomethemajoritypopulationofleisure,butalsoforthemajorityofpeoplehavepreferences. ThedesignofthecollectionofbooksontheJAVA
4、-based,focusingonthecollectionofcontentSOCKETprogramming,foundthedataoverviewandbackgammonrules,accesstothenetworkcommunicationtechnologyrelatedpapersalsorefertoalotofinformationonbackgammonprogramimplementationaswellasondocumentdescribestheJAVAdevelopmenttools.I
5、nthemeantime,Ilearnedthemulti-threadingtechnology,datatransmissiontechnology,SOCKETprogrammingtechniquetostudytheprincipleofnetworkcommunication,JAVAwriteaseriesofprinciplessuchastheprinciple.Developedbackgammononlineplaycodeimplementsonlinechat,onlinegaming,netw
6、orkcommunications,interfaceorganizationssuchas:theboard,establishaserver,connecttotheserverandotherfunctions.Throughtheabovetechnicalstudyandresearch,theuseSOCKETprogramming,connectionsbetweentheserverandclientcanusemulti-threadingtechnologytocompletethedatatrans
7、ferbetweentheclientandtheserver,andnetworkcommunication,sothatboththeclientcansynchronizeforprocessing.Keywords:JAVAmultithreadingSOCKETGobang目录1绪论11.1背景及意义11.2选题的目的11.3五子棋介绍21.4主要完成内容22开发环境及工具介绍32.1开发环境及运行环境32.1.1开发环境32.1.2运行环境32.1.2开发工具32.2Java简介32.2.1Java的起源和发
8、展32.2.2Java特点42.3JavaSocket网络编程简介52.3.1JavaSocket网络编程基础52.3.2Socket编程的实现62.4Java图形编程72.5多线程机制73需求分析和总体设计93.1需求分析作用93.1.1界面需求分析93.1.2软件需求分析93.2总体设计93.2.1系统设计思想1