필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to prevent interesection of arrays within a matrix?

조회 수: 1 (최근 30일)
roshan varkey
roshan varkey 2013년 12월 3일
댓글: roshan varkey 2013년 12월 3일
sorry the question is a bit abstract .i am making a battleship game on a 10x10 matrix. the user has to type in coordinate in (alphabets,number) style. i tried doing this and was able to place ships horizontally or vertically......but since the ships are of different unit length they are now intersecting with each other....and I don't know how to fix it.. i have attached the file containing the code i used.... help is appreciated!
  댓글 수: 3
sixwwwwww
sixwwwwww 2013년 12월 3일
attachment is missing. please try to attach it again
roshan varkey
roshan varkey 2013년 12월 3일
sorry,i forgot the attach the file last time... i have attahced it to this comment

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by