Ask coding questions

← Back to all posts
I can't find the problem
PhoenixRising (1)

I have been working on this project for a while, and I ran into a problem. It ALMOST works properly, and some still-lifes work. But sometimes it doesn't count a cell's neighbors properly. I've narrowed the problem down, but I can't seem to figure it out. I know it's between lines 121 and 137, but I can't figure out what I did wrong. Can someone please help me?

Edit: between lines 121-137 in the script.js file