Skip to content
Snippets Groups Projects
Commit 0a5c4ac6 authored by dragapsy's avatar dragapsy
Browse files

Maj importante apres perte de la class SC

parent 58329bfd
Branches
No related tags found
No related merge requests found
package model;
import java.util.Iterator;
public class ArrayGrid implements Grid{
private Cell [][] cells;
......@@ -50,4 +52,6 @@ public class ArrayGrid implements Grid{
}
}
}
}
......@@ -40,4 +40,9 @@ public class GrayGrid implements Grid{
public int getNumberOfColumns() {
return numnberOfColumns;
}
@Override
public void color(ColorGenerator colorGenerator) {
}
}
......@@ -3,7 +3,6 @@ package model;
import javafx.scene.paint.Color;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
......@@ -11,6 +10,7 @@ public class SquareCell extends AbstractCell{
List<Cell> neighbours;
public SquareCell(){
setColor(AbstractCell.DEFAULT_CELL_COLOR);
setNeighbours(null);
......
......@@ -11,9 +11,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
class ArrayGridTest {
// TODO
// uncomment
/*
private ArrayGrid arrayGridThreeFour;
private final ArrayGrid arrayGridTwoTwo = new ArrayGrid(2,2);
......@@ -76,8 +74,8 @@ class ArrayGridTest {
}
}
@Test
void testIterator() {
//@Test
/* void testIterator() {
Iterator<Cell> iterator = arrayGridTwoTwo.iterator();
assertThat(iterator.hasNext()).isTrue();
assertThat(iterator.next()).isEqualTo(arrayGridTwoTwo.getCell(0,0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment