Schreiben der Methode setDead
This commit is contained in:
parent
5837858bdb
commit
51054a0351
@ -53,6 +53,9 @@ public class Life implements ILife {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setDead(int x, int y) {
|
public void setDead(int x, int y) {
|
||||||
|
if (isInBounds(x, y)) {
|
||||||
|
grid[x][y] = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user