Chapter 3
Developing a Word Game
Section 4
Searching in All Directions
Though we can now search the grid horizontally, we want to do it in all directions. The easiest way to do this isn't to make our function more complicated, but rather to learn how to transform our grid! We'll use a toolkit including 'map', 'reverse', 'transpose', and our own recursive functions to do this. - Turn the grid 90 degrees with the 'transpose' function - Write a recursive function to scan the grid diagonally - Tidy up your code with the composition function