Difference between revisions of "Robocode 1"

From CompSciWiki
Jump to: navigation, search
Line 3: Line 3:
 
|Previous=[[QR Codes]]
 
|Previous=[[QR Codes]]
 
|Introduction=
 
|Introduction=
<br>Robot API
 
  
 
In 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_I|GUI Lab part 1]] lab or at least read [[GUI_I#Step_3:_Listen_carefully.21|Step 3]]. Completing these Robocode labs will also give you a head start on understanding Application Programming Interfaces (APIs).
 
In 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_I|GUI Lab part 1]] lab or at least read [[GUI_I#Step_3:_Listen_carefully.21|Step 3]]. Completing these Robocode labs will also give you a head start on understanding Application Programming Interfaces (APIs).

Revision as of 12:37, 3 April 2012

COMP 1010 Home > Back to Extra Labs

Introduction

In 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

-Notify Java (link to) -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.