I am trying to write anything to Console, but with no luck.
System.out.println("abc");
Should work, but it is not. It is my whole code:
import robocode.HitWallEvent;
import robocode.Robot;
public class MyRobot extends Robot
{
@Override
public void run()
{
while (true)
{
ahead(20);
System.out.println("Test Test");
}
}
@Override
public void onHitWall(HitWallEvent event)
{
System.out.println("Ouch, I hit a wall bearing " + event.getBearing() + " degrees.");
}
}
What am i doing wrong?
Best regards!