Pleasure and pain are important factors in how we humans make decisions. So why not give artificial intelligence a taste of ...