GameOfLife.java alive neighbors
I'm working on a game of life project for class, and I have gotten most of the method numberOfAliveNeighbors right, but when I click on any cell located by the edge I get an out of bounds error. I have tried to fix this by making if statements to change the values of those arrays, but it doesn't do anything. Is there anyone who can tell me what exactly I'm doing wrong here?
I can post the uncompleted code itself if needed.
2 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
So I’d have to make a new int array for pointsToCheck I’m assuming?
It seems doable, though. I’ll test it out later and let you know how it goes. Thanks!
update: it worked, thanks a lot I really 'preciate it!