#Nerding Out! ##Robocode
Welcome to the second Ordina J-Technologies Nerding Out event! We will be building robots and battle in various assignments. The assignments will be presented during the day.
This wiki can be used to set up your local environment so you will be able to run the tutorial.
Make sure you have Java 6 or Java 7 and Maven 3 set up for building our code.
There are four steps that you need to complete to have the whole setup needed. You'll need to:
- Clone the Git repository
- Install the Robocode.jar (and accompanying source) in your local Maven repository
- Setup the project in your favorite IDE
- Configure Robocode to use your compiled classes
- Make sure everything works by starting a battle
You'll need to clone this Git repository
git clone https://github.com/joukestoel/jtech-nerding-out-2.git nerding-out-2
That's it!
Open the ./setup folder. In here you'll find two convienent scripts and a ./lib directory. Depending is you are on Windows, Mac or Linux please run the .sh or .bat script.
After running the script Robocode.jar should be installed in your local library!
- Workspace -> [location_where_you_checked_out_the_nerding-out_project]
Prerequisit: Make sure that you have installed a Maven 2 Eclipse plugin. If you haven't, please follow the next steps
-
- Go to 'Help' -> 'Eclipse Marketplace'
-
- Search for 'Maven'
-
- Select 'Maven Integration for Eclipse (Juno and newer) 1.4 and hit 'Install'
-
- 'Confirm' the next step and wait for it to finish
-
- Select 'I accept ...', select 'Finish' and wait for the install to finish
-
- Select 'Restart'
- File -> Import -> Maven -> Existing Maven projects
- As 'Root dir' select the 'tutorial' folder
- Hit 'Finish'
- Import project -> Select '[location_where_you_checked_out_the_nerding-out_project]/tutorial' -> Hit 'Ok'
- Select 'Import project from external model'
- Select 'Maven'
- You can now basically keep hitting 'Next' and then hit 'Finish' (do make sure that you select a Java 6 or 7 SDK!)
- You will be notified that the GIT root is unknown. You can add it to your Version Control configuration (just follow the link in your 'Event Log')
- Done!
- Select menu 'File' -> 'Open project'
- Select '[location_where_you_checked_out_the_nerding-out_project]/tutorial' -> Hit 'Ok'
- Done!
- Start 'Robocode' (Browse to '[location_where_you_checked_out_the_nerding-out_project]/robocode_app' -> double click 'robocode.bat/sh')
- Once 'Robocode' is running, select menu 'Options' -> Select 'Preferences'
- Select tab 'Development options' -> Hit 'Add'
- Select the build output directory -> [location_where_you_checked_out_the_nerding-out_project]/tutorial/target/classes
- Hit 'Ok'
If all the above steps are succesful you should be able to select the robots that you will create. To check do the following
- Select the 'Battle' menu -> Select 'New'
- You should be able to see the robots in the 'nl.ordina.nerdingout...' packages -> Select the 'TutorialMovement1' -> hit 'Add'
- Select 'SittingDuck' -> hit 'Add'
- Hit 'Start battle'
If all is well you'll see two bots looking angry at each-other but not much will be happening ... We'll fix that in a minute!
Happy hunting!