|
@ -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(); |
|
|