Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right.
a function that returns all words from the grid in this manner [(“MYWORD1”,Just((7,0),Back), “MYWORD2”, Just ((2,1), Up)], having as types: type Grid = [[Char]], placement = (Position, Orientation), Position = (Int, Int) representing a (col, row) beginning at 0 and data Orientation = Forward | Back | Up | Down | UpForward | UpBack | DownForward | DownBack deriving (Eq,Ord,Show,Read)
Last Completed Projects
topic title | academic level | Writer | delivered |
---|