Re: store objects in an array
Tuesday, December 6, 2005 09:34 AM
Sounds like the old Sea Battle :)
You should only set the starting point randomly, then add/substract n in the chosen direction.
up = substract n from i
down = add n to i
right = add n to j
left = substract n from j
I hope this makes sense...