Edward Faulkner wrote:
> I'd suggest you find a good introduction to AI techniques, and then
> worry about implementing them in Ruby.

I'm trying to pick up AI programming and ruby, I found 
http://rubyforge.org/projects/ai-app-prog/ useful. Tom Copeland 
describes his  project as:
"A port from C to Ruby of the examples in M. Tim Jones' excellent book 
"AI Application Programming".

Its a work in progress (some of the ports are pretty much converting 
idiomatic C to Ruby with few changes.  Then Tom refactors them into good 
Ruby.

I picked the book up second hand at a very reasonable price and work 
through the code when I get a chance.