It's relatively easy once you realize that you have to do the diagonals first and in such a manner that they don't create duplicates for the horizontals and verticals.