This is an incredibly simple AI guard, which could be implemented for a simple stealth game. It has some basic pathfinding, turning away from obstacles instead of running into them.
Made by me.