I asked a question like that sooner, but now I want to customize my function and add some functionalities. Let's say I have a 2d square matrix (x = y) containing some letters and I knows the coordinates of a letter in the grid. Ex. A letter 'C' is located at the point (0,3). How could I check every direction to find a similar letter next to the starting one (including crossline) ?
I've search some info on google about games and searching function but couldn't find anything. If anyone could give me a hand, it would be greaty appreciate !
Thanks a lot !