I hacked up some basic search + learning algorithms for AI.  Most of them don't work, it was a study exercise.