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