Re: Can't find my robot to test it out in battle

fnl <[email protected]> Fri, 19 Oct 2018 15:30:10 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Hi Ian,

I tried to compile your robot in Robocode, and soon found the issue. You 
have a misplaced curly bracket between the comment and declaration of your 
run method. Hence, I cannot compile your robot.
So I guess the issue is due to a tiny issue. :-)

/**
* run: Hey's default behavior
*/
* }*
public void run() {

Compiling...
[parsing started RegularFileObject[C:\robocode\robots\irtatters\Hey.java]]
C:\robocode\robots\irtatters\Hey.java:16: error: class, interface, or enum 
expected
public void run() {
       ^
C:\robocode\robots\irtatters\Hey.java:28: error: class, interface, or enum 
expected
turnRight(45);
^
C:\robocode\robots\irtatters\Hey.java:29: error: class, interface, or enum 
expected
}
^
C:\robocode\robots\irtatters\Hey.java:35: error: class, interface, or enum 
expected
public void onScannedRobot(ScannedRobotEvent e) {
       ^
C:\robocode\robots\irtatters\Hey.java:39: error: class, interface, or enum 
expected
} else if (e.getEnergy() > 10) {
^
C:\robocode\robots\irtatters\Hey.java:41: error: class, interface, or enum 
expected
}
^
C:\robocode\robots\irtatters\Hey.java:48: error: class, interface, or enum 
expected
public void onHitWall(HitWallEvent e) {
       ^
C:\robocode\robots\irtatters\Hey.java:51: error: class, interface, or enum 
expected
} 
^
[parsing completed 51ms]
[total 87ms]
8 errors
Compile Failed (1)


torsdag den 18. oktober 2018 kl. 23.06.33 UTC+2 skrev ian.r.tatters:
>
> So I made some tweaks to the template to see how the robot would behave. 
> Unfortunately I can't find it to select for a battle. It's in the robot map 
> in the map irtatters (that's what I called the package). Now if I want to 
> start a new battle I see all the packages like sample, team, ect. but not 
> irtatters. I tried control r and clean robot cache. Can someone help me?
>
>

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.