Name: Anonymous 2009-03-25 20:32
I really need you guys!
I have an assignment due tommorrow (out of 4 others) that I just haven't been able to grasp.
The aim is to write a C++ program to play a simplified version of battleships. This involves using a single dimensional array length of 30 for the playing board of 0s and 1s. And two sizes of ship, 1 (6of) and 2 (3of), placed randomly on the board. Then just a 'Hit' and 'Miss' system. Once the games over it should tell the player how many guesses it took them.
If there is anyone who could lend a hand I would be extreamly greatful!
I have an assignment due tommorrow (out of 4 others) that I just haven't been able to grasp.
The aim is to write a C++ program to play a simplified version of battleships. This involves using a single dimensional array length of 30 for the playing board of 0s and 1s. And two sizes of ship, 1 (6of) and 2 (3of), placed randomly on the board. Then just a 'Hit' and 'Miss' system. Once the games over it should tell the player how many guesses it took them.
If there is anyone who could lend a hand I would be extreamly greatful!