QUESTION: You will write code of a “Battleship Game”. Rules: Create a game board 10x10 size with 2-dimensional array Game should be a single player. Your program will randomly place 7 ships on the game board, and player will try to hit all ships to finish the game. There will be 7 ships : 1 ship in size of 1x5 cells 1 ship in size of 1x4 cells 1 ship in size of 1x3 cells 2 ships in size of 1x2 cells 2 ships in size of 1x1 cells All ships should be placed on the board randomly. All ships can be placed on the board vertical or horizontal randomly. You need to print these at each stage : Print the game board At first all cells should be viewed as “*”. Also all unknown/hidden cells should be viewed as “ * ” at all stages. Hit cells should be viewed as “ O ” Missed cells should be viewed as “ X ” Display a menu 1-> Shoot (User enters a coordinate and hits) 2-> Shoot randomly (Random coordinate gets hit) 3-> Show ships (Shows all ships) 4-> New game (Restarts game and re positions all ships) 5-> Quit game (Quits program) At least these operations must be implemented as different functions : Placing ships Displaying game board Shooting (User and random) Users should get a score at the end of the game depending on successful hits.
21 freelancers are bidding on average $301 for this job
Hello. Employer. I have read and understood the project. I'm interested this project. So, firstly I want to discuss with you about this project. Then I'll be happy. I wait for your good reply. Thanks.
======================= HI I have many experiences on C and C++ I can do your task. I think we can discuss more about price and deadline. The Best Regards! ======================