Browse Source

Refratoring background color

main
Thoumi Ngonga Brice 2 years ago
parent
commit
4d75a8bc81
  1. 2
      src/main/java/BattleShip/AIGridGUI.java
  2. BIN
      target/classes/BattleShip/AIGridGUI.class

2
src/main/java/BattleShip/AIGridGUI.java

@ -343,7 +343,7 @@ public class AIGridGUI extends JPanel {
if(s == null) { if(s == null) {
//If no ship in that cell, mark as a miss. //If no ship in that cell, mark as a miss.
text = "Other player missed. Your turn."; text = "Other player missed. Your turn.";
b.setBackground(Color.BLUE);
b.setBackground(Color.lightGray);
} else { } else {
//Check if guess killed a ship. //Check if guess killed a ship.
killed = s.counter(); killed = s.counter();

BIN
target/classes/BattleShip/AIGridGUI.class

Loading…
Cancel
Save