I’m not sure what to write cause I don’t see enough code. I’m not sure how when and where to assume stuff will work. A simple while loop makes ships destroy each other? i find it confusing. Where’s the interface this black box I’m working with?
Put your mouse over the panel with the graphics and scroll down. The expected outputs are there.