Answer to Question #114556 in MatLAB for Yas Özçaka

Question #114556
I'm writing this code to play battleship against the computer and I've written the code to the point where I can get all the ships placed (battleship- 4 cells long, submarine- 3 cells long, cruiser- 2 cells long, and destroyer- 1 cell). But now I have to make the computer randomly guess spots on the board(9x9) and check to see if it hits one of the ships. The computer gets 29 missiles and if the computer doesn't get a hit for 7 guesses to automatically hit a ship. Please help I've been messing around with loops all day and can't get it right. Thank you.
1
Expert's answer
2020-05-06T19:22:02-0400
Dear Yas Özçaka, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS