Zwischen-Commit 01 (setAlive fertig)
This commit is contained in:
parent
09a995eccf
commit
68fc76793f
@ -1,5 +1,8 @@
|
||||
public class Life implements ILife {
|
||||
|
||||
private final int GRIDSIZE = 5;
|
||||
private boolean[][] grid = new boolean[GRIDSIZE][GRIDSIZE];
|
||||
|
||||
public static void main(String[] args) {
|
||||
Life l = new Life(new String[] { " ",
|
||||
" ",
|
||||
@ -32,7 +35,7 @@ public class Life implements ILife {
|
||||
@Override
|
||||
public void setAlive(int x, int y) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
grid[x][y] = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -50,6 +53,13 @@ public class Life implements ILife {
|
||||
@Override
|
||||
public ILife nextGeneration() {
|
||||
// TODO Auto-generated method stub
|
||||
Life nextLife = new Life();
|
||||
|
||||
for(int y = 0; y < GRIDSIZE; y++){
|
||||
for(int x = 0; x < GRIDSIZE; x++){
|
||||
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user