Just for Kicks

Banelight

New member
Hi all

So recently I had the brain fart that I would like to learn how to code Java....im in the I.T Industry, studying towards specializing in Security Analysis. So understanding Java would be a real plus...

So i did some googling, and came across this little gem:

A game, that teaches you how to code java!

http://robocode.sourceforge.net/
http://robowiki.net/wiki/Main_Page

I have found it to be a lot of fun, as you can visually see what you coding is doing...with sometimes Hilarious result! :D

Anybody else hear of this? ...I see there is also an Arena that you can compete in with you tanks ;)

Let see what those competitive freak out there, like me can do! :D
 
Dude,this is an amazing find.

I've been learning Java casually for a little over a year now so this will help tons.
 
Last edited:
Will definitely check it out. Dont do much java (I mainly code C and some scripting languages) but always been keen to learn as our software department is all java. Thanks for the links
 
This is awesome! I've been reading lots of javascript but a bit slow on learning actual Java! this is so kickass
 
I like this. think I'll take some time at the weekend and tinker.
I'll start a github repo with my results so any interested can check it out.

I'm a currently a java dev so this is a nice toy.
 
I have a B.Sc Computer Science degree,but the course just put me off from coding due to the manner in which they taught us.
I'll have a look at these links you all posted and hopefully this will spark the fire of coding inside me again.

Thanks guys.
 
I have always loved tinkering with coding...but so far everything i know I learn't on my own...couldn't afford classes. I started with C# back in the day, and although I loved it, i was a little daunting to learn on your own with nobody to explain when you got stuck....so I gave up on it for the time being, playing with simpler stuff live html, php etc while doing some websites. Currently Im studying to specialize in I.T Security Analysis, and it just seems Java is a must no matter how I look at it, and Sql being the other, so that's how I found this ;) Plus I'm a competitive freak, and something like this appeals to my competitive nature :D
 
I'm tinkering, got my first bot up and running around like a tard being able to kill only a target dummy.

I like the idea though, this is a nice way to learn AI along with java.
So maybe I will use this as my training tool for next years Enetelect AI challenge. But first my bot has to beat you all.
I might even make a comp with a really decent prize if there is enough interest in this.
 
lol...same here. My bot just runs backwards and forwards like a twat :D but he kills some bots at least

Trying to wrap my head around wave surfing and predictive aiming....
 
lol...same here. My bot just runs backwards and forwards like a twat :D but he kills some bots at least

Trying to wrap my head around wave surfing and predictive aiming....

I'm doing predictive aiming from scratch. It's fairly simple. Get the delta position for a couple of frames. Do linear interpolation and then predict the movement. Factor in bullet speed and enemy movement speed and you can fire. I have some slim ideas for how to abuse predictive aiming.

EDIT: To get access to functions that automatically convert the degrees into radians you have to use and advanced robot.
public class GlacieredPyro extends AdvancedRobot

Am i the only one having problems where it opens then immediately closes?

Try running it from a console or terminal see what the output there is when it crashes and post here.
 
Last edited:
Yep,i've also tried running the batch files but same problem.

Either i'm doing something wrong or this PC is very fussy.

TBH i've not heard of ink files.
From the libs directory, you can try to manually run robocode using the following in cmd prompt :
Note I'm on linux so I'm taking a shot in the dark here

java -Xmx512M robocode.jar robocode.Robocode

I can now beat the myfirstjunior bot in a 10 match bout. My linear aiming is still a bit choppy but it's getting the job done.
 
I'm doing predictive aiming from scratch. It's fairly simple. Get the delta position for a couple of frames. Do linear interpolation and then predict the movement. Factor in bullet speed and enemy movement speed and you can fire. I have some slim ideas for how to abuse predictive aiming.

EDIT: To get access to functions that automatically convert the degrees into radians you have to use and advanced robot.

**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...
 
It seem the shortcut is .Ink for some reason,the file is Robocode.bat

This is what i get:
C:\Users\User>java -Xmx512M -cp libs/robocode.jar robocode.Robocode
'java' is not recognized as an internal or external command,
operable program or batch file.

This is by copying and pasting the directory directly into Cmd.
 
Nice find! Would be nice to fiddle with java again... it's been a while.

It seem the shortcut is .Ink for some reason,the file is Robocode.bat

This is what i get:
C:\Users\User>java -Xmx512M -cp libs/robocode.jar robocode.Robocode
'java' is not recognized as an internal or external command,
operable program or batch file.

This is by copying and pasting the directory directly into Cmd.

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 :)
 
Back
Top