The key point is that there was no programming or learning involved to create the behaviors. The connectome of the worm was mapped and implemented as a software system and the behaviors emerge.
“A Worm’s Mind In A Lego Body”
http://i-programmer.info/news/105-artificial-intelligence/7985-a-worms-mind-in-a-lego-body.html
via http://interconnected.org/home/