Haskell - Calculating the shortest path using trees
问题 i am trying to write a code in haskell, that goes from point A, to point F, on a board game, that is essentially a Matrix, following the shortest path. This is the board: AAAA ACCB ADEF * 0 0 N The robot enters on the letter A, on the bottom (where it is the * ), and must reach F, on the bottom of the board are the coordinates, x=0, y=0, and pointing towards North. F coordinate is (3,0) The trick is, it can't jump more than one letter, it can go from A to B, B to C, etc. and it can walk