Robots that can kill everything around them: not that hard.
Robots that can distinguish between friend and foe: very hard.