Difference between revisions of "Robocode 1"
Line 9: | Line 9: | ||
|Body= | |Body= | ||
== Installation == | == Installation == | ||
− | + | To play and use robocode you must have Java 5 or higher installed on your machine. You can download Java from here: http://java.com/en/. | |
+ | |||
+ | You can download the latest version of robocode from: | ||
+ | |||
+ | |||
+ | You can download a copy of robocode from | ||
-Download Robo (screen shots) | -Download Robo (screen shots) | ||
-Run install | -Run install |
Revision as of 12:47, 3 April 2012
COMP 1010 Home > Back to Extra Labs
IntroductionIn this lab you will learn and be able to play the exciting coding game called Robocode. Robocode is an event driven program that allows us to create, modify and test virtual robots in java. If you are not familiar with event driven programming you should consider completing the GUI Lab part 1 lab or at least read Step 3. Completing these Robocode labs will also give you a head start on understanding Application Programming Interfaces (APIs). |
---|
Installation
To play and use robocode you must have Java 5 or higher installed on your machine. You can download Java from here: http://java.com/en/.
You can download the latest version of robocode from:
You can download a copy of robocode from
-Download Robo (screen shots)
-Run install
-navigate to the folder of installion and run the .bat file
The Robot Console
-talk about all sections -new
Sample battle
- To see what the program actually does (sample.MyFirstRobot, sample.RamFire, sameple.Tracker) - screen shot of main menu
Create your first Robot
Making the Robot Move
Firing on Other Robots
Additional Methods
- run(), onSeannedRobot() and onHitByBullet()
Compiling your Robot
Battle your Robot
- This is what you would have to show the TA, that your Robot can defeat a default one.