You are welcome.
The best way to solve this kind of problems is drawing your board / array structure in a vector drawing program.
What we first have to ask ourselves is, what kind of data must we store inside the individual array cells. For your game that would be probably :
BOARD POSITION this is the X / Y coordinate (not screen position)
SCREEN POSITION this is the corresponding position of a particular cell onto the screen
TYPE OF SHIP which occupies a cell.
SHIP OWNER is the ship yours or from the enemy?
HIT this contains if a boat is hit or not.
In this above example, we can best make use of an 3-dimensional array. This is an array which has several vertical plains. If you want to visualise this kind of array, make sure you are drawing in an "isometric" grid. This will give you an idea about the form of the array.
Lets give an example :
X = 9
Y = 9
Z = 2
Dim MyArray(X, Y, Z) As Integer // --> integer array
This array contains a total of 300 elements;
100 elements per plain
3 plains in total
So the "Z" axis moves in the third dimension, the depth dimension
The "X" axis moves from left to right
The "Y" axis moves from the back to the front
A 3 dimensional array can only contain data of the same type. In the array above only integer data. If now for example one of those plains must contain "string" data and the other two "integer" data. As long has those plains have the same amount of cells in the "X" and "Y" direction, you can make a string array like "Dim MyStringArray(X, Y) As String", while the integer array remains 3 dimensional. Now you can easily convert the array-element-positions from those different types of arrays to correspond with each other.
Another and more simpler way to understand is to make the 3 dimensional array a "string" type. In that way you can store the X and Y board coordinate in the following format :
where 200 is the X board (screen) coordinate and 100 the Y board coordinate. The disadvantage of this method is that you need to convert if you have nummeric data. However in your case because the board is very small, is fine.
I do not know if it is allowed by your teacher, but a class array should make things much easier. A class-array-element can contain several properties of different types of data. Each board positions has its own element inside the class array. That element contains on its turn the properties for the X - Y - hit -ship type. This is much easier to imagine and... you do not need that "nasty" third dimension.
I hope this helps you on your way to finish your project.
Wish you all the best and very much success!