nextGeneration() Überprüfung Überbevölkerung - keine weitere Methodenimplementierungen nötig
This commit is contained in:
1 parent
b1ffd970ab
commit
89bf74f0c3
3 files changed
+2
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user