This is what the computer's grid looks like. How to make computer randomly place his ships on the grid. Place vertically or horizontally randomly. The ships are: 1 ship of length 5, 1 ship of length 4, 1 ship of length 3, 1 ship of length 3, 1 ship of length 2. The grid will still look like this after the ships are placed. When i click on the grid how do i check for a hit or a miss? if it's a hit i want to change the CellBackColor to red or if it's miss then i change CellBackColor to white.
↧