Posted: Wed Dec 30, 2009 9:52 pm Post subject: RE:Hellpppp
Ah, true; still doesn't matter, have the empty or loaded with a ship as the boolean array and the hit and miss as (x,y) coordinates the user enters to check against the array.
I would keep each ship as a list and again give true or false values for hit and miss to check for how much of the ship is lost.
Tony
Posted: Wed Dec 30, 2009 11:41 pm Post subject: RE:Hellpppp
perhaps you should let mk2000 decide on this choice
Posted: Thu Dec 31, 2009 11:10 am Post subject: RE:Hellpppp
If i remember correctly there was a battle ship game that was already made on this website, if you can find it, you can see what the code is and how to start from there.
not steal it.
Personally I find learning from code to very helpful. Faster than pencil and paper, and I also can sometimes find ways to improve the already written code and find spots where I would rather do this from that. Then with those ideas in mind I rebuild the program to fit my criteria from scratch.
Not only does this help with learning code faster, it also improves your ability to read and understand different coding styles and the code in general!