Give me some suggest please!
Write a program to simulate the battle ship game.
You have a 10x10 area and three battle ships are randomly
located.
Each ship occupies 5 consecutive elements and it can have
different orientations.
The player is allow to make 3 hits, by inputting the (x,y)
coordinate. The program will notify the player his score at
the end of the game.
Your program must save the 10x10 map into a file. In the file
Use o to represent element of a battle ship and x to mark
location hitted by the player
my teacher asked me to use
srand(time(0))
this function
i have tried,
but I don't know how to continue...
Can anyone gives me some suggestion how I can do? Thx!~