To clarify I only wanted one or two for loops to help me on my way, preferably in the same style as I had used in the vertical 🙂
I’m making a game using a 2D array, and I need a check that tests if at the current position (indicated by a green square) the character there is part of a diagonal sequence of “l” more of the character.
The idea is that we walk in four directions and count the steps. This may not be the most efficient implementation, but at least it looks neat and easy to understand.