fix result display

main
stuckd 2025-06-25 08:55:45 +02:00
parent b6a74b957e
commit bc909c3ba5
1 changed files with 10 additions and 10 deletions

View File

@ -38,22 +38,22 @@ public class ButtonMovePieceListener implements ActionListener {
this.game.stopClock(); this.game.stopClock();
this.sf.setBoardMode(BoardMode.finished); this.sf.setBoardMode(BoardMode.finished);
this.sf.enableControlPanelButtons(); this.sf.enableControlPanelButtons();
this.sf.showResult("Spieler "+game.getActivePlayer()+" hat gewonnen!"); this.sf.showResult("Spieler " + game.getActivePlayer() + " hat gewonnen!");
} else { } else {
this.sf.setBoardMode(BoardMode.normal); this.sf.setBoardMode(BoardMode.normal);
if (game.getLastMove() != null) {
sf.aktualisiereAusgabe();
}
} }
this.sf.setCursor(null); this.sf.setCursor(null);
//hier rotieren markieren // hier rotieren markieren
if(game.isRotieren())sf.setWechsel(!sf.isWechsel()); if (game.isRotieren())
sf.setWechsel(!sf.isWechsel());
this.sf.erstelleBrett(); this.sf.erstelleBrett();
if (game.getLastMove() != null) {
sf.aktualisiereAusgabe();
}
} }
} }