您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > C/C++资料 > 基于Java的“网络五子棋”游戏的设计和实现(含源文件)
四川师范大学成都学院本科毕业设计I基于Java的“网络五子棋”游戏的设计和实现——网络版客户端学生:xxx指导教师:xx内容摘要:目前,随着计算机网络的发展,以计算机技术和网络技术为核心的现代网络技术已经在现实生活和生产中得到了广泛的使用,休闲类网络游戏集趣味性,娱乐性,互动性和益智性于一体,已经成为多数人群的休闲方式,也为多数人所喜好。本设计收集了关于JAVA基础的书籍,着重收录了关于SOCKET编程的内容,找到了五子棋概述和规则的资料,查阅了网络通信技术的相关论文,同时也参考了很多关于五子棋实现的程序资料以及关于JAVA开发工具的介绍的文档。在期间,我学习了多线程技术、双缓冲技术、数据传输技术、SOCKET编程技术,研究了网络通信原理、JAVA编写原理等一系列的原理。开发了网络五子棋网络通信代码,实现了网络聊天、数据传输、网络通信、界面组织如:棋盘、建立服务器、连接到服务器、系统设置、我要参赛等功能。通过对以上技术的学习和研究,利用SOCKET编程,能服务器与客户端之间的连接,利用多线程技术完成了服务器端与客户端之间的数据传输、网络通信,使得两个客户端能够同步的进行处理。在加载图片以及绘制棋盘方面,采用双缓冲技术消除屏幕的闪烁现象。达到了预期的效果。关键词:多线程SOCKET客户端网络通信四川师范大学成都学院本科毕业设计IIDesignandrealizationofthewebgobanggamebasedonjava——clientmoduleAbstract:Atpresent,withthedevelopmentofcomputernetwork,computertechnologyandnetworktechnologyasthecoreofmodernnetworktechnologyhasinreallifeandproductionhasbeenwidelyused.Recreationaltypeofnetworkgamesconsistsofinteresting,entertaining,interactivityandbeneficialintelligence.Ithasbecomeawayofentertainmenttomanypeople,andhasbeenloved.Muchoftheinformationcollectedinthisdesign,suchasmanybooksbasedontheJAVA,focusonthecontentsofSOCKETprogramming,Findinformationaboutthewebgobanggame,Accesstotherelevantpapers,ReferencetoalotofprograminformationonachievingThewebgobanggameandintroductiontoJAVAdevelopmenttoolsonthedocument.Intheperiod,Ilearnedaseriesofprinciples,ForexampleMulti-threadingtechnology,double-bufferingtechnology,datatransmissiontechnology,SOCKETprogrammingtechniquetostudytheprincipleofnetworkcommunication,JAVAwritingprinciples.Internetchat,datatransmission,networkcommunications,interfacesstructure,suchas:theboard,establishingserver,connectingserver,optionhadbeenrealized.Iknowthesetechnologiesthroughstudyingandresearching,IusingofSOCKETprogramming,serverandclientcanbeconnecting,iusingofmulti-threadingtechnologytocompletetheserversideandclient-sidedatatransmissionandtheclientcansynchronizethetwoprocesstion.Picturesanddrawingboardloading,Iusingofdouble-bufferingtoeliminatescreenflicker.Keywords:multi-threadedsocketclientnetworkcommunication四川师范大学成都学院本科毕业设计I目录前言.....................................................................11绪论..................................................................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的起源和发展..............................................32.2.2Java特点......................................................42.3JavaSocket网络编程简介...........................................52.3.1JavaSocket网络编程基础......................................52.4Java图形编程.....................................................73需求分析和总体设计....................................................73.1需求分析作用......................................................73.1.1基本需求分析..................................................73.1.2高级需求分析..................................................73.2总体设计..........................................................83.2.1系统设计思想..................................................83.2.2系统总体设计..................................................9四川师范大学成都学院本科毕业设计II3.3功能模块及流程...................................................103.3.1系统主要模块.................................................103.3.2服务器端作用.................................................103.3.3客户端作用...................................................113.3.4系统主流程...................................................124概要设计.............................................................134.1网络编程的模式和选取.............................................134.2主要类与其作用...................................................134.2.1服务器类.....................................................134.2.2客户端主类...................................................154.2.3客户端副类...................................................154.2.4棋盘类.......................................................165详细设计.............................................................185.1开发环境的搭建...................................................185.1.1安装JDK.......................................................185.1.2安装JRE......................................................195.1.3安装Eclipse..................................................205.1.4配置环境变量.................................................205.2客户端界面设计...................................................235.3客户端网络设计...................................................245.4棋盘类设计.......................................................255.5系统各模块之间的关系.............................................266软件测试和展示........
本文标题:基于Java的“网络五子棋”游戏的设计和实现(含源文件)
链接地址:https://www.777doc.com/doc-5251611 .html