Array question

closed account (LN3RX9L8)
If I have a program of Battleship and there are 2 ships but each ship has two locations in the board, and I place them according to a random generator(0-3) with the options (above, below, right or left) how would I write that with 2D arrays...


The benefit of google ~
take a look at this code
closed account (LN3RX9L8)
Okay I did but I am still on the same boat
Do u have the sample codes or codes that u have wrote so far? u would have better chance of getting help if u have some example. just write some skeleton codes or logic so u can get a better idea of things that u need to do.
closed account (LN3RX9L8)
@GaCokoya yes I do would you like me to post it ?
Topic archived. No new replies allowed.