Wrote an AI.  It appears to work, although testing has been minimal.