Theseus is trapped in the Minotaur's Maze and must find the exit. He can move one square left, right, up or down, or remain still for one move. But each time Theseus moves, the Minotaur makes two moves. For each of the Minotaur's moves, he always moves toward Theseus horizontally if he can, or vertically otherwise.
You can view the source code for this example.