毕业设计说明书基于J2ME的手机五子棋游戏的设计与实现专业计算机科学与技术学生姓名杨婷婷班级B计算机064学号指导教师王榕完成日期2010年5月25日盐城工学院本科生毕业设计说明书(2010)基于J2ME的手机五子棋游戏的设计与实现摘要:J2ME(Java2MicroEdition)是近年来随着各种不同设备,尤其是移动通信设备的飞速发展而诞生的一项开发技术。它因其“writeonce,runanywhere”的Java特性而提高了开发的效率。随着手机性能的不断提高,手机休闲娱乐应用将成为PC休闲娱乐应用之后又一重要业务增长点。棋类游戏规则单一,比较适合在手机等便携终端推广。由于具有跨平台、易于移植、占用空间小的优势,J2ME成为移动应用开发平台的主流,并提供了很多用以支持移动应用软件的开发的API。现将该技术用于这次的手机游戏开发,可以实现游戏的快速开发,不但便于查看游戏运行过程中内存的占用量和程序的每一部分代码消耗了多少处理器时间,而且可以不断地优化代码,使代码具有高度的复用性、可扩展性、可维护性。游戏的开发以J2ME为平台,利用Java技术,结合J2ME的MIDP技术,并对于程序设计思想,重要类、方法等展开讨论。在对弈部分,分析设计走棋算法,选择合适的方式组织成代码,实现基本的人工智能。过程中使用了J2ME中的CLDC/MIDP软件体系,主要运用了MIDProfile的特定类的支持,来完成游戏的开发。关键词:J2ME;CLDC;MIDP盐城工学院本科生毕业设计说明书(2010)DesignandImplementationofGobangCell-phoneGameBasedonJ2MEAbstract:J2MEisakindoffastdevelopingtechnologyimplementedonvariousdevicesespeciallymobilecommunicationequipments.Itimprovestheefficiencyofthedevelopmentprocessbecauseofits"writeonce,runanywhere"nature.Thedevelopmenttrendoftheentertainmentmarketbasedonthecellphoneisveryobviousbecausethehandsetperformanceenhancesunceasingly.TheentertainmentmarketbasedonthecellphonewilltobethenewimportantbusinessgrowthpointfollowthePCentertainmentmarket.Astherulesofasinglechessgame,itismoresuitableformobilephonesandotherportableterminalextension.J2MEhasbeenthepreferredplatformfordevelopmentbecauseofitsplatformindependentandcompatibility,andprovidesalotofAPIstosupportthedevelopmentofmobileapplicationsoftware.Thetechnologyformobilegamedevelopment,canachievetherapiddevelopmentofthegame.Itisnotonlyeasytoobservethememoryconsumptionandprocessorconsumedtimeduringtheoperationofthegame,butalsocanoptimizethecode,sothatthecodehasahighdegreeofreusability,scalability,maintainability.ThegamehasdesignedbyJ2ME,theJavatechnologyandtheMIDPtechnology.Istudiedtheprocedurethought,theimportantclassandthemethod.Intheplayingchesspart,Ihaveanalyzedthealgorithm,choosedtheappropriatewaytoorganizethecodeandrealizedthebasicartificialintelligence.Ontheotherhand,IlearnedsoftwaresystemofCLDC/MIDPandthespecificclassoftheMIDProfiletocompletethegamedevelopment.Keywords:J2ME;CLDC;MIDP目录1概述.................................................................11.1课题研究背景.......................................................11.2课题研究意义.......................................................22开发技术背景.........................................................22.1JAVA语言概述.......................................................22.2J2ME简介...........................................................32.3J2ME的体系结构.....................................................42.4移动信息设备简表...................................................72.5开发平台...........................................................83系统分析及总体设计...................................................93.1可行性分析..............................