Skip to content
Snippets Groups Projects
Commit 1e7af8c0 authored by NGUYEN Thi hang's avatar NGUYEN Thi hang
Browse files

fait à 2/11

parent f1b2f519
No related branches found
No related tags found
No related merge requests found
Pipeline #10570 failed
......@@ -6,5 +6,4 @@ Il s'agit d'implémenter une version du jeu "inondation" (voir par exemple [ici]
## Membre du projet
- NOM, prénom
- NOM, prénom
- Nguyen thi hang groupe 3
......@@ -9,6 +9,18 @@ public class SquareCell extends AbstractCell{
List<Cell> neighbours;
public SquareCell (){
Cell DEFAULT_CELL_COLOR;
}
public SquareCell(Color color){
this.setColor(color);
}
public SquareCell(Color color,List<Cell> neighbours ){
this.setColor(color);
this.neighbours= neighbours;
}
/**
* A cell is placed somewhere on a grid. Its neighbours thus depend on the underlying grid.
......@@ -17,7 +29,7 @@ public class SquareCell extends AbstractCell{
*/
@Override
public List<Cell> getNeighbours() {
return null;
return this.neighbours;
}
/**
......@@ -28,6 +40,9 @@ public class SquareCell extends AbstractCell{
*/
@Override
public void setNeighbours(List<Cell> cells) {
this.neighbours=cells;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment