Skip to content

An exercise in AI programming with Java. Watch as agents navigate a simulated world!

Notifications You must be signed in to change notification settings

fullstackman/Little-Flockers

Repository files navigation

Little Flockers

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.

A screenshot of the simulation in action

How To Use

  1. Fork this git repository or clone it as is
  • git clone <repository URL>
  1. Go into the repository folder
  • cd Little-Flockers
  1. Compile the java source code files into the 'bin' folder
  • javac -d bin *.java
  1. Run any of the simulations located in the xml folder
  • java -cp bin Simulation ./xml/<any xml file>

How To Modify

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.

About

An exercise in AI programming with Java. Watch as agents navigate a simulated world!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages