They aren’t “programing all possible situations”. An autonomous car decides what to do by matching patterns of what it is seeing, and what it has seen before. It is similar to how a 18 year old with a brand new driver’s license learns how to drive. That is why they are “training” it by logging thousands of miles…