Difference between revisions of "Robocode/Robot Anatomy"

From Robowiki
Jump to navigation Jump to search
m
(Improve formatting and move documentation footer to template)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Image:Anatomy.jpg|thumb|The anatomy of a robot]]
 +
 
A robot consists of three individual parts:
 
A robot consists of three individual parts:
  
http://robocode.sourceforge.net/help/robots/anatomy.jpg
+
* '''Body''' ‒ Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right.
 +
* '''Gun''' ‒ Mounted on the body and is used for firing energy bullets. The gun can turn left or right. Carries the radar on top.
 +
* '''Radar''' ‒ Mounted on the gun and is used to scan for other robots when moved. The radar can turn left or right. The radar generates [http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html#onScannedRobot(robocode.ScannedRobotEvent) <code>onScannedRobot()</code>] events when robots are detected.
  
* '''Body''' - Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right.
+
== See also ==
* '''Gun''' - Mounted on the body and is used for firing energy bullets. The gun can turn left or right.
+
 
* '''Radar''' - Mounted on the gun and is used for scanning other robot when moved. The radar can turn left or right. The radar generates onScannedRobot events when robots are detected.
+
{{RobocodeDocsList}}
  
 
[[Category:Robocode Documentation]]
 
[[Category:Robocode Documentation]]
 +
[[Category:Tutorials]]
 +
 +
__NOTOC__

Latest revision as of 04:35, 11 August 2017

The anatomy of a robot

A robot consists of three individual parts:

  • Body ‒ Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right.
  • Gun ‒ Mounted on the body and is used for firing energy bullets. The gun can turn left or right. Carries the radar on top.
  • Radar ‒ Mounted on the gun and is used to scan for other robots when moved. The radar can turn left or right. The radar generates onScannedRobot() events when robots are detected.

See also

Robocode API

Beginner Guides

External Editors

.NET Robots

Links