I dug up this little game I made a few years ago that I wrote as a test of the A* algorithms usefulness in another game I was writing. It is only about 500 lines of java and has bare minimum graphics and AI but it illustrates some good concepts.
Some of it is commented well and some is a mess, feel free to post any questions.







