From fbd87bc091ddd3f4147a4c010da5918f1b5781ee Mon Sep 17 00:00:00 2001 From: Justine Yannis Date: Sun, 23 Oct 2022 10:05:45 +0200 Subject: [PATCH] =?UTF-8?q?Reset=20du=20score=20dans=20init()=20du=20mod?= =?UTF-8?q?=C3=A8le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iutfbleau/projetAgile/Puissance4/Model/GrilleModel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projetAgile/src/fr/iutfbleau/projetAgile/Puissance4/Model/GrilleModel.java b/projetAgile/src/fr/iutfbleau/projetAgile/Puissance4/Model/GrilleModel.java index f254df8..48a9fd2 100644 --- a/projetAgile/src/fr/iutfbleau/projetAgile/Puissance4/Model/GrilleModel.java +++ b/projetAgile/src/fr/iutfbleau/projetAgile/Puissance4/Model/GrilleModel.java @@ -12,8 +12,8 @@ public class GrilleModel extends AbstractGridInitiater{ private int column, row; private String playerOneName; private String playerTwoName; - private int playerOneScore = 0; - private int playerTwoScore = 0; + private int playerOneScore; + private int playerTwoScore; public GrilleModel() { super(); @@ -24,6 +24,8 @@ public class GrilleModel extends AbstractGridInitiater{ this.column = Constants.COLUMN_COUNT; this.row = Constants.ROW_COUNT; this.grille = new int[this.column][this.row]; + this.playerOneScore = 0; + this.playerTwoScore = 0; this.reset(); }