To set a Hard AI opponent, choose Settings > Opponent > Hard AI.
The Hard AI attempts to move intelligently. It tries to capture your valuable pieces, and protects its own by capturing your attackers or by fleeing (but not by blocking, of which it has no understanding). The AI does not castle.