-
Spend months in a meeting room with everything from ethicists and philosopher to machine learning specialists and developers to figure out each nuance of the rules
-
or program it to kill everything until the batteries run down and send it out within the hour
The answer in a war is always the second option.