My game seems very slow comparate to another game of life on the web, I used a lot of loop. Any advice for increase the quality of my code and the performance of my game ?
You’re having poor performance because of your implementation. Migrate it to HTML5 canvas and you will have better performance.
In its current state, your game loop is never ending; the interval is never cleared. But even if that’s fixed, the events are not handled correctly without using canvas (try and see).
I hope you can fix it. It’s a great way to learn ,