3 ms·
The first thing I check on any Life simulation is how they handle the edges. There are three easy ways: edges wrap, just off screen is permanently dead, and jus
by sopooneo 14y ago
The first thing I check on any Life simulation is how they handle the edges. There are three easy ways: edges wrap, just off screen is permanently dead, and just off screen is permanently alive. This sim uses wrap. That's how I've always done it too.
The real way is to allow for an arbitrarily large grid off s screen. In fact, a true implementation requires that. But I can see how you might overload the machine pretty quick when you're implementing in Javascript.