From 1e7af8c0b1cf76c1a1359a35bb2148bfdbc83624 Mon Sep 17 00:00:00 2001
From: Hang <thi-hang.NGUYEN@etu.univ-amu.fr>
Date: Mon, 7 Nov 2022 23:23:47 +0100
Subject: [PATCH] =?UTF-8?q?fait=20=C3=A0=202/11?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md                               |  3 +--
 app/src/main/java/model/SquareCell.java | 17 ++++++++++++++++-
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 7bcec58..5ba69e0 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/app/src/main/java/model/SquareCell.java b/app/src/main/java/model/SquareCell.java
index 14f51e9..adac114 100644
--- a/app/src/main/java/model/SquareCell.java
+++ b/app/src/main/java/model/SquareCell.java
@@ -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;
+
+
 
     }
 
-- 
GitLab