Spinner.c
#include "cAI.h" //This allows us to use the AI functions
AI_loop() { //This must be the name of the AI loop in C
turnLeft(1); //Bot code goes here
}
int main(int argc, char *argv[]) { //Called when bot is run
return start(argc, argv); //Starts Xpilot-AI
}
To compile:
gcc Spinner.c libcAI.so -o Spinner
To run:
./Spinner