Difference between revisions of "Robocode/Learning from Robots"

From Robowiki
Jump to navigation Jump to search
(New page: {{stub}} This page suggest that you learn from other robots by downloading and examining the source code of robots. == Learning from other Robots == By now, you should know how to use th...)
 
m
Line 4: Line 4:
  
 
== Learning from other Robots ==
 
== Learning from other Robots ==
By now, you should know how to use the Robot editor and create robots. If not, you should follow the [[Robocode/My First Robot|My First Robot Tutorial] first. You will also want to look at some tutorials.
+
By now, you should know how to use the Robot editor and create robots. If not, you should follow the [[Robocode/My First Robot|My First Robot Tutorial]] first. You will also want to look at some tutorials.
  
 
Eventually, though, you'll want to learn by examining code written by others. Some authors graciously include the source to their robots, and you can examine these robots using the '''Extract downloaded robot for editing''' tool, in the Robot Editor.
 
Eventually, though, you'll want to learn by examining code written by others. Some authors graciously include the source to their robots, and you can examine these robots using the '''Extract downloaded robot for editing''' tool, in the Robot Editor.
Line 10: Line 10:
 
http://robocode.sourceforge.net/help/learning/extract.png
 
http://robocode.sourceforge.net/help/learning/extract.png
 
   
 
   
 
 
Simply select the robot you want to extract...
 
Simply select the robot you want to extract...
  
+
http://robocode.sourceforge.net/help/learning/extractdialog.png
  
Then click "Extract" to extract the .jar to the robots directory:
+
Then click '''Extract''' to extract the .jar to the robots directory..
  
 +
http://robocode.sourceforge.net/help/learning/extractresults.png
 
   
 
   
  

Revision as of 14:12, 28 November 2007

This article is a stub. You can help RoboWiki by expanding it.

This page suggest that you learn from other robots by downloading and examining the source code of robots.

Learning from other Robots

By now, you should know how to use the Robot editor and create robots. If not, you should follow the My First Robot Tutorial first. You will also want to look at some tutorials.

Eventually, though, you'll want to learn by examining code written by others. Some authors graciously include the source to their robots, and you can examine these robots using the Extract downloaded robot for editing tool, in the Robot Editor.

http://robocode.sourceforge.net/help/learning/extract.png

Simply select the robot you want to extract...

http://robocode.sourceforge.net/help/learning/extractdialog.png

Then click Extract to extract the .jar to the robots directory..

http://robocode.sourceforge.net/help/learning/extractresults.png


As you can see, the files in this example were extracted to C:\robocode\robots\rapture\. You can now open them up and look at them in the Robot Editor:


Next: Uploading your own Robot


See Also