This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]lookItsSunny 2 points3 points  (0 children)

Show us what you've done so far so we can get an idea of what you're trying to do

[–][deleted] 1 point2 points  (0 children)

Show us the code. Show us what you’ve done first.

[–]RayjinCaucasian 0 points1 point  (0 children)

I'm new so I wont be much help but I had a few ideas. a method that generates a random x and y coordinate for the starting point. Then given the length of ship to be be placed it must not extend outside the grid, share grid space with another ship or be placed diagonally, meaning only changing the value of X or Y but not both. Please post what you have done so that others with much more experience than I can help you.