Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to prevent interesection of arrays within a matrix?

1 次查看(过去 30 天)
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 个评论
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