nextGeneration() Überprüfung Überbevölkerung - keine weitere Methodenimplementierungen nötig

This commit is contained in:
Susanne committed 2025-02-16 16:10:31 +01:00
1 parent b1ffd970ab
commit 89bf74f0c3
3 files changed
+2

No files matched your search

Binary file not shown.
Binary file not shown.
+2
View File
@@ -56,6 +56,8 @@ public class Life implements ILife {
next.setAlive(x, y);
} else if (countAliveNeighbours(x, y) < 2) {
next.setDead(x, y);
} else if (countAliveNeighbours(x, y) > 3) {
next.setDead(x, y);
}
}
}