What moral code should your self-driving car follow?

Teaching a robot to make ethical decisions is pretty complicated.