fertiges Assignment

This commit is contained in:
Oli040404 2025-02-19 23:15:21 +01:00
parent 995bf8fc61
commit 54db5231f5
3 changed files with 0 additions and 3 deletions

View File

@ -9,5 +9,4 @@ public interface ILife {
// Methoden zum Fortschreiben der Generationen // Methoden zum Fortschreiben der Generationen
public ILife nextGeneration(); public ILife nextGeneration();
} }

View File

@ -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();

View File

@ -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();