hello
i'm writing the code for "The Game of Life".
i'll explain, i get grid dimensions from the user, and in every cell there's either
'-','R' or 'G'.
now i need to go threw the grid and count how many R's and G's are adjacent to that cell.
the problem arises when the i'm going threw the edge rows (1st and last) and columns (1st and last).
i KNOW i can solve it somehow using a modulu, but i'm not sure how.
Thank you for your attention, have a nice day