Spinner.java


class Spinner extends javaAI { //"extends" allows us to use the AI functions
        @Override //Tells Java to override the existing AI_loop
        public void AI_loop() { //This must be the name of the AI loop in Java
                turnLeft(1); //Bot code goes here
        }
        public Spinner(String args[]) { //Required for superclass javaAI
                super(args);
        }
        public static void main(String args[]) { //Called when bot is run
                String[] new_args = {"-name","Spinner"}; //Sets args
                Spinner spinner = new Spinner(new_args); //Starts Xpilot-AI
        }
}


To compile:


javac Spinner.java

To run:


java Spinner