Reset du score dans init() du modèle

This commit is contained in:
Justine Yannis 2022-10-23 10:05:45 +02:00
parent 74074633ef
commit fbd87bc091

View File

@ -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();
}