You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each ship I am going to place I need to check that the following happens. It checks if the grid is empty or if there is already other ships on the grid that are taking up coordinates where I will not be able to place the current ship. Then I want to ask the user to pick a spot to place the ship and allow the user to specify the starting position and orientation (horizontal or vertical) for each ship. You will tell the user to try again if the spot he chose is not available because either the ship will not fit in the grid or it overlaps with another ship or place the ship if the user chooses an appropriate spot.
The text was updated successfully, but these errors were encountered:
For each ship I am going to place I need to check that the following happens. It checks if the grid is empty or if there is already other ships on the grid that are taking up coordinates where I will not be able to place the current ship. Then I want to ask the user to pick a spot to place the ship and allow the user to specify the starting position and orientation (horizontal or vertical) for each ship. You will tell the user to try again if the spot he chose is not available because either the ship will not fit in the grid or it overlaps with another ship or place the ship if the user chooses an appropriate spot.
The text was updated successfully, but these errors were encountered: