Finding a cost for a maze path
问题 I have this maze: ##++############## ##++++++++++++++## ########++######## ##++++++++##----## ##++########--#### The "#" symbols are walls in the maze. The "+" regions of the maze are reachable regions of the maze from the entry point, and the "-" region of the maze are unreachable from the entry point. The entry point is located at the top of the maze. What I would like to do now is plot a cost of the reachable regions in the maze, which will look like this: ##00############## ##++02++04++06