cleanup-work #22

Merged
lgc merged 12 commits from cleanup-work into main 2024-12-22 23:06:00 +00:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit b7215db6d9 - Show all commits

View File

@ -221,5 +221,8 @@ public class GameBoard extends JPanel {
public Player getP1() {
return p1;
}
public Player getP2() {
return p2;
}
}

View File

@ -151,6 +151,8 @@ public class MainFrame extends JFrame {
if(player != gameBoard.getP1()){
return;
}
this.gameBoard.getP1().destroy();
this.gameBoard.getP2().destroy();
LooseScreen looseScreen = new LooseScreen(this);
mainPanel.add(looseScreen,panelName);
mainPanel.revalidate();