Reddit user Comm4nd0 has just released his code for his AI.

The link includes a video with a demonstration of its capabilities. Looks pretty impressive!

https://www.reddit.com/r/raspberry_pi/comments/4ovcpm/raspberrypi_ai_code_as_requested/