Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to prevent interesection of arrays within a matrix?

1 visualización (últimos 30 días)
roshan varkey
roshan varkey el 3 de Dic. de 2013
Comentada: roshan varkey el 3 de Dic. de 2013
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 comentarios
sixwwwwww
sixwwwwww el 3 de Dic. de 2013
attachment is missing. please try to attach it again
roshan varkey
roshan varkey el 3 de Dic. de 2013
sorry,i forgot the attach the file last time... i have attahced it to this comment

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by