diff --git a/lib/src/Simulation.dart b/lib/src/Simulation.dart index a3f99c5..90969ce 100644 --- a/lib/src/Simulation.dart +++ b/lib/src/Simulation.dart @@ -87,7 +87,7 @@ class Simulation { for (int i = 0; i < map.length; i++) { math.Point p = map.toCoordinates(i); bool cell = map[i]; - int neighbors = getNeighbors(p.x, p.y, 1); + int neighbors = getNeighbors(p.x, p.y, rules.range); if (cell == false && rules.checkBirth(neighbors) == true) { stateChanges[i] = true; } else if (cell == true && rules.checkSurvival(neighbors) == false) {