Robots are getting good at many things. In the future, they may be able to handle weapons like a pro. Take this sword-fighting robot. It recognizes the positions of a human player the sword to react. The moment it detects the human is moving, the robot predicts possible trajectories of the sword of the human player by a least-squares method.
The robot can judge the kinds of attack and generate an appropriate defensive motion. More information is available here.