A-Star Algorithm Java Path Finder Algorithm using a Priority Heap. Each terrain type has a set cost, and there is a probability of an Alligator attacking the character if he ventures next to water terrain.
To run the program, copy all the files into a folder and compile them together. Code to compile: javac *.java
The file for pathfinding is Alligator. After compiling run alligator.java Code to run: java alligator