Schreiben der Methode setAlive

This commit is contained in:
Oli040404 2025-02-12 10:58:18 +01:00
parent f1ceb04f8d
commit 5837858bdb

View File

@ -46,6 +46,9 @@ public class Life implements ILife {
@Override @Override
public void setAlive(int x, int y) { public void setAlive(int x, int y) {
if (isInBounds(x, y)) {
grid[x][y] = true;
}
} }
@Override @Override