My favorite project from CS 440 - Intro to Artificial Intelligence (Fall 2015)
It's an exercise in AI programming with Java. Use XML files to create a virtual environment filled with agents and obstacles. Program the behaviors of the agents in Java. Specifically Java 7, but it probably supports older versions.
- Fork this git repository or clone it as is
git clone <repository URL>
- Go into the repository folder
cd Little-Flockers
- Compile the java source code files into the 'bin' folder
javac -d bin *.java
- Run any of the simulations located in the xml folder
java -cp bin Simulation ./xml/<any xml file>
The source file names should be a big hint but the functions to control the bird behaviors are located in Flocker.java starting at line 492
Follow the templates of the existing XML files to create your own that will instantiate new environments.