All pastes #2052448 Raw Edit

Untitled

public text v1 · immutable
#2052448 ·published 2011-05-01 06:35 UTC
rendered paste body
                            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);