Me and my classmate have to change the amount of ships from 1 to 4, does somebody know how you can do this???
I won't do it for you because it sounds like your in a lesson .
But in your current code, the functions random_row/col and ship_row/col, set your ships. So try creating another function that is similar but with different names.
That's the basis of it. Then you will have to create rules/loops to check that the first ships row/col doesnt match your new ships row/col.
Good luck. If you get half way and stuck copy your code in and i'll check it out.