
Howdy!

To run, ./bot.pl localhost 20005

This monstrosity was written over the course of two long days by myself.
Wish I had noticed the announcement sooner, theres a ton of things I'd love
to have done =) Damn Slashdot could haven given me a few days warning...
It starts off a little slow, but then route computations are deadly fast. 
It digests the map into blocks. Navigating from one side of the map to
the other is a bredth first traversal accrost the blocks. Going through
a block is almost trivial as there are no obsticles.
During runtime, an "agent" approach is used, where each agent implements
a strategy, and estimates how relavent that strategy is with a priority.
Current the only interested agent implemented (aside from seek treasure,
deliver, take, etc) is treasure stashing, and its untested. If there
are multiple bots on and there is adequate treasure in the game, the
bot will attempt to collect it and move it off of the base in hopes that
other bots aren't tracking the exactly movements of treasure, like us.
Many objects wrappers are defined to associate utility methods with
datastructures, but the innards of the objects are lexically bound
to lambdas too. Go figure. Kind of a blend of styles.
Instead of optimizing things like I'd like to have, cheezeball
calculations approximate. A good Traveling Salesman Problem implementation
would have rocked.
Well, its still getting stuck in degenerate cases where it wont move and
keeps trying to plot a course to the present location and seek out treasure
that isn't there.
Sorry for all the debug output. Time, time, time...

-scott walters
scott@illogics.org
phaedrus@budweiser.com

