Just for Kicks

Nice find! Would be nice to fiddle with java again... it's been a while.



Do you have java installed?
in command type:
java -version

It should show you the java version that you have. If it doesn't show anything, then you need to install/reinstall it :)

This. If it is installed then your environment variables or classpaths are not set up.

- - - Updated - - -

**Makes passing car sounds, and waves hand over head!!** Dude, remember Im a novice code, just getting my feet wet....speak slowly and use big words!!

@ DC, dude I just downloaded the Robocode file and installed it...then run the desktop shortcut! Something weird going on there man...

Start by opening the junior bot. It has the basics. Then open the API from the help menu to get a list of methods you can call to do things.
Use the existing bots to learn what things do, or just post questions here.
 
Nice find! Would be nice to fiddle with java again... it's been a while.



Do you have java installed?
in command type:
java -version

It should show you the java version that you have. If it doesn't show anything, then you need to install/reinstall it :)

Just getting the usuel error with Java -Version.
C:\Users\User>Java -version
'Java' is not recognized as an internal or external command,
operable program or batch file.

Downloaded and installed the latest version here:
http://www.java.com/en/download/windows_xpi.jsp?locale=en


Still getting same problem,i can run minecraft fine though.

- - - Updated - - -

Guess the work PC is too fussy,will try at home later.
 
Okay, managed to make a pretty smart nano bot comming in at a whopping 219 bytes.
I had to strip my survival code to barebones to get it into nano class.
With smarter movement I was at ~420bytes in the micro category.

Let me know when someone has something for me to go up against. :D
 
I'm still trying to make it so my robot keeps aiming at something,copying the other robot codes doesn't seem work as the compiler throws an error.

Isn't there a way to turn turret to scanned?
 
I'm still trying to make it so my robot keeps aiming at something,copying the other robot codes doesn't seem work as the compiler throws an error.

Isn't there a way to turn turret to scanned?

You shouldnt copy all the other robots code exactly as the className and namespace will give compiler errors.
The turret and radar are actually seperate and can be moved seperately. see Radar locking page . For infos on how to use the radar to scan super effective.

While that page shows you nice techniques you can further optimize them once you have somethin running.
 
I'll be giving this a try. I haven't coded in 8 years since becoming a financial adviser and this is a good excuse to try Java out in my spare time. Thanks.
 
Lol...yeah

Not had much time today to work on my coding...have an idea of what I want from my bot...taking lots of reading though to get back into coding....I like to understand all fundamentals around the coding I use... :D

Otherwise its like jumping into a BMW and racing it for the first time without getting a feel for how she handles ;) However you have a distinct advantage Pyro :P
 
DC there is a folder in the installation folder called javadocs, with HTML pages that has all the commands etc :)

Also google robocode lessons...some good reading there as well.
 
Lol...yeah

Not had much time today to work on my coding...have an idea of what I want from my bot...taking lots of reading though to get back into coding....I like to understand all fundamentals around the coding I use... :D

Otherwise its like jumping into a BMW and racing it for the first time without getting a feel for how she handles ;) However you have a distinct advantage Pyro :P

I do, which is why I am keeping mine in the nano class. It's devlishly hard keeping the code so small and have your robot not chew a brick.
 
Back
Top