fertiges Assignment
This commit is contained in:
parent
995bf8fc61
commit
54db5231f5
@ -9,5 +9,4 @@ public interface ILife {
|
||||
|
||||
// Methoden zum Fortschreiben der Generationen
|
||||
public ILife nextGeneration();
|
||||
|
||||
}
|
||||
|
@ -63,7 +63,6 @@ public class Life implements ILife {
|
||||
return isInBounds(x, y) && grid[x][y];
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ILife nextGeneration() {
|
||||
Life newLife = new Life();
|
||||
|
@ -34,7 +34,6 @@ public class LifeTest {
|
||||
ILife nextGen = l.nextGeneration();
|
||||
assertTrue(nextGen.isAlive(1, 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void destroyCrowdedCell() {
|
||||
Life l = new Life();
|
||||
|
Loading…
x
Reference in New Issue
Block a user