Browse Source

Update Implementation Methode AIGridGUI

main
Thoumi Ngonga Brice 2 years ago
parent
commit
dd5ac1e708
  1. 10
      src/main/java/BattleShip/AIGridGUI.java

10
src/main/java/BattleShip/AIGridGUI.java

@ -138,9 +138,15 @@ public class AIGridGUI extends JPanel {
testLocations = null; testLocations = null;
} }
//
//Mark all cells containing a ship and disable all cells in the grid.
for (BSButton bsb : buttons) {
if(bsb.getCellContents() != null) {
bsb.setBackground(Color.blue);
bsb.setBorder(loweredBevel);
}
bsb.setEnabled(false);
}
text = "Ready to start the game."; text = "Ready to start the game.";
shipsPlaced = true; shipsPlaced = true;

Loading…
Cancel
Save