Reset du score dans init() du modèle
This commit is contained in:
parent
74074633ef
commit
fbd87bc091
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user