Skip to content
Snippets Groups Projects
Commit 6ce1b7de authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Corrections mineures de Grid

parent 6ae87128
No related branches found
No related tags found
No related merge requests found
Pipeline #2422 passed
......@@ -29,19 +29,4 @@ public class EmptyGrid implements Grid{
@Override
public void fill(TileGenerator tileGenerator) {
}
@Override
public Iterator<Square> iterator() {
return new Iterator<>() {
@Override
public boolean hasNext() {
return false;
}
@Override
public Square next() {
return EmptySquare.EMPTY_SQUARE;
}
};
}
}
package model;
public interface Grid extends Iterable<Square>{
public interface Grid{
Square getSquare(int rowIndex, int columnIndex);
int getNumberOfRows();
int getNumberOfColumns();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment