This is my first forum post, so I apologize if it’s too basic or has already been posted a million times.
To prevent collisions, I want to be able to check the points that are adjacent to my ships or my shipyard and see if they are occupied. This seems like a pretty simple idea, but I haven’t figured out how to do it. Is there only one ‘position’ value for each ship, or do they have x and y values as well? If the latter is true, how would I be able to retrieve (as an example) the space to the right of a ship?