By the time you could build such a system, autonomous cars will have completely taken over, so the rules could be as complicated as you wish.