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
        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:


To run:

java Spinner