登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

基于RoboCode的软件机器人的设计与实现毕业论文

 2021-05-15 11:05  

摘 要

本文借助Robocode软件对软件机器人的构造及战斗风格的研究开拓自身思维,所得结果对于JAVA学习以及用户二次开发机器人的概念结构设计和逻辑结构设计具有重要的指导意义。

论文主要简述robocode的历史以及研究背景,掌握Java开发平台进行robocode开发的技术要点,研究最简单机器人的算法与结构功能,并了解robocode的进化算法。分析了各类简单机器人的进攻与防守策略,完成了对自建机器人的功能设计,并在与示例机器人的战斗测试中,研究各类机器人的对抗性能差异,通过自建机器人的战斗表现分析优缺点,找出改进措施,在不断测试中一直改进,对算法不断地进行优化。即如何在保证单挑能力不落后的情况下提升自己的群战能力,在不断的调试中找出更加适合自己的策略。

文章总体前后相应,结构清晰,由前文四大运动方式的分析,为之后自建机器人的改进起到了支撑性的作用。分析各类机器人的算法,也与编写自建机器人有着密不可分的联系。

关键词:robocode;机器人战斗仿真器;算法

Abstract

In this paper, by means of robocode software of robot software structure and fighting style of research to develop their own thinking. The results for learning Java and users in developing robot conceptual structure design and logical structure design has an important guiding significance.

Paper outlined robocode history as well as the research background, master java development platform robocode development techniques, the simple robot algorithm and structure function and understand robocode evolutionary algorithm. All kinds of simple robot, offensive and defensive strategies are analyzed and a complete the function of self built robot design, and and robotics example of fight test and Research on all kinds of robot confrontation performance differences, through self built robot battle performance analysis of advantages and disadvantages, find out the improvement measures, in the continuous test has been improved, the algorithm constantly optimize. How to ensure the challenged the ability not backward enhance own group warfare capabilities. In debugging find more suitable for their own strategy.

The overall structure of the article is clear, and the analysis of the four ways of motion is analyzed, which has played a supporting role for the improvement of the self built robot. Analysis of various types of robots, but also with the preparation of the robot has a close link.

Key Words:robocode;Robot combat simulator;algorithm

目录

第1章 绪论 1

1.1 研究目的及意义 1

1.2 国内外研究现状 2

1.3 论文结构 2

第2章 JAVA开发技术 3

2.1 JAVA开发技术简述 3

2.2 面向对象设计理论 3

2.3 JAVA面向对象的三大特征 3

第3章 Robocode概述 5

3.1 Robocode的定义与产生 5

3.1.1 Robocode历史及简述 5

3.1.2 Robocode整体内部架构 5

3.2 Robocode系统参数 6

3.2.1 系统参数 6

3.2.2 战斗参数 7

3.2.3 参数之间的相互作用 9

3.3 Robocode机器人的详细分析 10

3.3.1 机器人结构 10

3.3.2 Robocode机器人相关命令 10

第4章 Robocode各类机器人分析 12

4.1 明显且规律的运动方式 12

4.2 随机性强的运动方式 13

4.3 对瞄准有干扰性的运动方式 13

4.4 根据敌人的射击或运动而采取的被动运动方式 15

4.5 对Samples中5个典型机器人的对战测试 15

第5章 Robocode机器人的设计 16

5.1 最简单机器人 17

5.1.1 最简单机器人的进攻 19

5.1.2 最简单机器人的防守 19

5.2 机器人MyRobot1 20

5.2.1 MyRobot1算法流程图 20

5.2.2 MyRobot1的基本原理 20

5.2.3 战斗测试分析 22

5.3 机器人MyRobot2 24

5.3.1 MyRobot2算法流程图 24

5.3.2 MyRobot2的基本原理 25

5.3.3 战斗测试分析 26

5.4 综合分析小结 27

第6章 总结与展望 29

致谢 30

参考文献 31

第1章 绪论

1.1 研究目的及意义

开发一个游戏,应该是很多程序员或者在将来准备成为程序员的年轻人的一种梦想。然而能够以游戏开发为职业的程序员或许是一种幸运,但总是这个行业中的少数部分。大多数程序员并没有很多机会去做这件事情,更多的人成为全世界普遍性的类似商业程序中某一个的代码撰写者。在现实中把枯燥和乏味放在心里,曾经的游戏开发梦想越来越远[1]

而 Robocode的出现,似乎给程序员们沉闷的代码生活平添了几分色彩。Robocode是一位IBM的工程师Mat Nelson用Java语言所创造的机器人战斗仿真引擎。Robocode不是一个已经编写完整的游戏,是一个能进行用户二次开发的游戏。当你开发一个游戏,在开发之前又有太多无聊琐碎却又是必需的工作,像编写界面,处理图形等。而Robocode已经把这些准备工作做好,你所做就是为你的机器人坦克编写智能程序,让它能够移动、进攻、防御、躲避、开火。而它的对手就是跟你一样其他程序员编写机器人程序[2]。 

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图