Assuming eventually these technical challenges will be overcome, it will be possible to encode and execute instructions to direct the car how to respond to a sudden or unexpected event. However, the most difficult part is deciding what that response should be, given that in the event of an impending or unavoidable accident, drivers are usually faced with a choice of at least two less-than-ideal outcomes.