put hardwired rule in comment

This commit is contained in:
timeo 2024-05-28 18:35:43 +02:00
parent a461769f93
commit 024cbf7191
1 changed files with 4 additions and 4 deletions

View File

@ -137,9 +137,9 @@ public class Simulator extends Thread {
// Apply Game of Life rules
for (int x = 0; x < getWidth(); x++) {
for (int y = 0; y < getHeight(); y++) {
int aliveNeighbors = countAliveNeighbors(x, y);
//for (int x = 0; x < getWidth(); x++) {
// for (int y = 0; y < getHeight(); y++) {
// int aliveNeighbors = countAliveNeighbors(x, y);
// if (world[x][y] == 1) {
// newWorld[x][y] = (aliveNeighbors < 2 || aliveNeighbors > 3) ? 0 : 1;
// } else {
@ -154,7 +154,7 @@ public class Simulator extends Thread {
world = newWorld;
//world = newWorld;