Fixed bug in Java AI
authorSam Moore <[email protected]>
Fri, 16 Mar 2012 04:16:51 +0000 (12:16 +0800)
committerSam Moore <[email protected]>
Fri, 16 Mar 2012 04:16:51 +0000 (12:16 +0800)
commit35eb2149307a55d6ae145d748bae83131dcba0e3
tree311324a33aa5edf9c7da3df223e47eabbc936512
parent8827bb58a733a2adf3e7fe6e174d12bd5c1a0846
Fixed bug in Java AI

In KillUnit:
I was using Vector.remove(Object), but I realised that this doesn't compare
references, instead it uses "compareTo". Which meant the AI deleted every unit
as soon as the first one died. Fun.

I discovered gcj, which lets you compile a Java program.
This is much easier than trying to convince the java interpreter to run.
agents/basic_java/Makefile
agents/basic_java/basic.java

UCC git Repository :: git.ucc.asn.au