Cellular automata works in Python, not Javascript

I’ve made two versions of the same celluar automata in JavaScript and Python. The Python version works perfectly as expected, whereas the JavaScript doesn’t… The problem is the third generation. How it looks in Python: How it looks in JavaScript: Two cells (C and D) should change from defectors back to cooperators (blue cell). This … Read more