Mauvaise initialisation

This commit is contained in:
Justine Yannis 2022-10-23 10:07:49 +02:00
parent fbd87bc091
commit ff052e94ac

View File

@ -38,9 +38,9 @@ public class Puissance4Controller {
this.panel.init();
this.panel.resetButton(resetListener);
ModelEventListener modelListener = new ModelEventListener(panel);
this.panel.changeLabel(this.modele.getPlayerTurn());
this.panel.setPlayerOneName(this.modele.getPlayerOneName());
this.panel.setPlayerTwoName(this.modele.getPlayerTwoName());
this.panel.changeLabel(this.modele.getPlayerTurn());
//Ajout listener au modèle
this.modele.addGridListener(modelListener);
}