For a final project in my VB Class, I am making BattleShip. I have all the coding done to place ships and guess others, but my ships are able to intersect.

I am having a hard time thinking of how to stop this. I could make a procedure that checked if the xy position of one is near another, but that would only allow it to not intersect at the base point.

How might I get this to work with minimal code that doesn't allow the ships to intersect anywhere? (i.e. the middle of two pieces overlapping)


Thanks in advance!