How to make a AI actor?

I am thinking of doing a maze game. How do I make an actor (enemy) find its way to the other actor in the maze?
This actor would move as long there is a way and not stuck at the corner and do nothing. Just like a robot mouse which has a sensor on it.
Please help. Thanks.
This actor would move as long there is a way and not stuck at the corner and do nothing. Just like a robot mouse which has a sensor on it.
Please help. Thanks.
Comments