Пример #1
0
 // changes the grid when changes have been made to the objects within the grid
 public bool ChangeGrid(Board board, Ship ship, int row, int column)
 {
     if (Fire(ship, row, column))
     {
         board.SetGridVal(row, column, 2);
         return(true);
     }
     else
     {
         board.SetGridVal(row, column, 1);
         return(false);
     }
 }