Newer
Older
Color cell = DEFAULT_CELL_COLOR;
this.neighbours = new ArrayList<>();
@Override
public void setNeighbours(List<Cell> cells) {
for (int i = 0; i < neighbours.size() ; i++) {
this.neighbours.set(i,cells.get(i));
}
public Iterator<Cell> iterator(){
return new ColoredCellIterator(new SquareCell());
}