Schreiben der Methode setAlive
This commit is contained in:
parent
f1ceb04f8d
commit
5837858bdb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user