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

Tache 6 (La methode coloredArea(Cell startCell) de la classe Flooder)

parent 06189654
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,18 @@ public class Flooder { ...@@ -12,6 +12,18 @@ public class Flooder {
} }
} }
static int coloredArea(Cell startCell){
ColoredCellIterator cell = new ColoredCellIterator(startCell);
int numberOfCellColored = 0;
while (cell.hasNext()) {
cell.next();
numberOfCellColored++;
}
return numberOfCellColored;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment