The evil lord CQbOL has returned from centuries of sleep, and darkness has descended over the land. His army of 10,000 minions are donning their armor and sharpening their blades. Fortunately, it's already 2014, and swords have been obsolete for more than 1000 years. Your group of hard-boiled mercenaries with a shady past have been tasked with handling this self-proclaimed lord of darkness using advanced modern technology. You have already found out the floor plan. Your job is to guide the infiltration team by finding a path to the dungeon lord's throne room. So far, everything is going according to plan. ...Goals:
maze([[0, 0, 0, 0], [0, 1, 1, 0], [0, 1, 0, 0], [0, 1, 0, 1], [0, 0, 0, 0]]).This will encode the given maze. (The actual array will be different).
mazepath(X1,Y1,X2,Y2,Maze,Path)that instantiates Path to a path from (X1,Y1) to (X2,Y2) in Maze.