基于JAVA的手机小游戏开发

第1页 / 共33页

第2页 / 共33页

第3页 / 共33页

第4页 / 共33页

第5页 / 共33页

第6页 / 共33页

第7页 / 共33页
试读已结束,还剩26页,您可下载完整版后进行离线阅读
基于JAVA的手机小游戏开发-知知文库网
基于JAVA的手机小游戏开发
此内容为付费资源,请付费后查看
1020
立即购买
您当前未登录!建议登陆后购买,可保存购买订单
付费资源
© 版权声明
THE END
基于」AVA的手机小游戏开发摘要中国传统的五子棋游戏是古代中国民间传统的智力棋类比赛中最主要竞技游戏项目形式之一,是指一种由两人对弈的智力策略棋盘类游戏,用黑白两色的棋子在15X15的棋盘上进行公平的竞技,里面涵盖很多技巧,棋子优先达到五颗相连的人获得胜利,主要流传在中国地区与汉字文化体系区域以及欧美各国和亚洲部分区域。内容非常简单,老少皆宜,不仅可以提高思维的灵活程度,增强人类智慧,同时富有很多生活上的哲理,还可以修身养性。自计算机实现以来,受到了许多计算机玩家的酷爱。本系统主要是以JAVA编程语言为主要开发语言,包含画布模块、棋子模块、AI模块。具体设计步骤如下:(1)设计棋盘模型,用获取点坐标的方法进行画线操作,循环线条行成网格,添加颜色。(2)编写监听器和指针,让摆下的棋子更加准确。(3)构思智能人机的要求,选择权重分析方法,把人机做的更加智能。利用JAVA在计算机电脑图形方面的编程,实现出基本的网格和棋子的类,用f语句完成判断胜负条件,在此基础上通过权重分析和设置精确的数值是影响程序中AI精准性的关键要素。此次实验完成了比较智能的人机对战系统,还有提出很多提高精准性的方法。算法的钻研很有助于了解程序结构、增加逻辑思维、熟悉算法流程来提高电脑人机的智能程度方案。在其他人工智能方面提供了更多方法起到参考学习的作用。关键词B深度搜索:权重分析:人工智能1AbstractChinese traditional backgammon game is one of the main competitive gameforms in the ancient Chinese folk traditional intellectual chess game,refers to a kindof intellectual strategy board game played by two people,with black and white chesspieces on the 15X15 chessboard for fair competition,which covers a lot of skills,chess pieces priority to reach five connected people to win,mainly spread in Chinaand the Chinese character culture system area,as well as European and Americancountries and parts of Asia.The content is very simple,suitable for all ages,not onlycan improve the flexibility of thinking,enhance human wisdom,but also rich in manyphilosophies of life,but also self-cultivation.Since the implementation of computers,it has been loved by many computer players.This system is mainly based on the JAVAprogramming language as the main development language,including canvas modules,chess modules,and AI modules.The specific design steps are as follows:(1)Design the checkerboard model,use the method of obtaining pointcoordinates to draw lines,loop lines into a grid,and add colors(2)Write monitors and pointers to make the chess pieces more accurate.(3)Conceive the requirements of intelligent man-machine,choose the weightanalysis method,and make the human-machine more intelligent.Using JAVA programming in computer graphics,the basic grid and chess classare realized,and the if statement is used to determine the winning and losingconditions,on the basis of which weight analysis and setting accurate values are thekey elements affecting the accuracy of AI in the program.This experiment completes a relatively intelligent human-machine combatsystem,and proposes many ways to improve accuracy.The study of algorithms is veryhelpful to understand the program structure,increase logical thinking,and familiarizeyourself with the algorithm process to improve the intelligence of computerman-machine.More ways to serve as reference learning in other aspects ofARTIFICIAL.Key words:deep search:Weight analysis:artificial intelligence3目录一.绪论1.课题的目的和意义.…12.五子棋前景1.五子棋术语33.手机游戏优势.…4二.相关技术介绍71.开发工具Java软件介绍1.需求分析和总体设计92.系统主要流程102.人工智能113.Android简介....12三.系统设计141.总体设计142.模型建立153.控制模块设计154.人工智能的设计16四.系统实现161.细化设计描述162.玩家类183.算法思想194.实现效果23五.总结与展望25参考文献27郑重声明.281
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容