Untitled
public text v1 · immutable break;
case UNCLICKED_DESTROYER:
counter++;
turns++;
gridButton[r][c].setBackground(Color.yellow);
board[r][c] = CLICKED_SHIP;
JOptionPane.showMessageDialog(null, "You hit my Destroyer!");
if(counter == 17)
ratingSystem();
break;
case UNCLICKED_SUBMARINE:
counter++;
turns++;
gridButton[r][c].setBackground(Color.green);
board[r][c] = CLICKED_SHIP;
JOptionPane.showMessageDialog(null, "You hit my Submarine!");
if(counter == 17)
ratingSystem();
break;
case UNCLICKED_PATROL:
counter++;
turns++;
gridButton[r][c].setBackground(Color.blue);