program.c
//Used to track the actions each turn, used for both player and computer  (works)
Used to track the actions each turn, used for both player and computer  (works)
Used to track the actions each turn used for both player and computer ( works )
int fire(int row, int col, char (*eBoard)[BOARDSIZE], char (*shots)[BOARDSIZE]){
  if(eBoard[row][col] == BOAT) {
    eBoard[row][col] = HIT;
    shots[row][col] = HIT;
    return 1;
  } else {
    shots[row][col] = MISS;
    return 0;
  }
}
int fire ( int row , int col , char ( * eBoard ) [ BOARDSIZE ] , char ( * shots ) [ BOARDSIZE ] ) { if ( eBoard [ row ] [ col ] == BOAT ) { eBoard [ row ] [ col ] = HIT ; shots [ row ] [ col ] = HIT ; return 1 ; } else { shots [ row ] [ col ] = MISS ; return 0 ; } }
Used to track the actions each turn, used for both player and computer  (works)
Used to track the actions each turn used for both player and computer ( works )