You’re required to build a game ‘Boom-The-Battleship’ in C program that fulfil the below requirements/rules:
• The mission of the player that plays the game is to find the battleship of your enemy through a masked out map.
• The game should have a 20 rows x 60 columns size, which you should masked the area with the character ‘#’.
• The game should allow player to choose among 3 stages of difficulties. For example:
• Beginner: 80 ships
• Intermediate: 50 ships
• Advance: 20 ships
(Note: You may define your own number of ships for each level which you think appropriate)
• Each ship is in 5 characters length.
• Once the game started, all the ships will be scattered randomly in the map. The ships should not be visible to the player.
• The player is required to choose the location to boom by coordinates (row, col). You should not process if the location is out of the map’s boundary.
• Unmasked the location which has been boomed. If there’s a ship at that location, unmask the whole ship.
• Game will end when player successfully destroys 5 ships, and the screen should display the total number of attempts the player has taken, and show the appropriate ending message, for example:
• If total attempts > 20: display “You need to try harder!”
• If total attempts between 10-20: “Not too bad”
• If total attempts < 10: “You have the talent!”
• Or, game will end if player not able to destroy 5 ships within 30 attempts and the screen should display the message “You’ve no luck today”
You’re encouraged to improve your code structure by using functions. You’re encouraged to add in any additional controls, validations or messages which you think are appropriate.
Followings are some sample screenshots of the game (you’re allowed to have variances of display design, arrangement or style, as long as it fulfilled the game requirement stated above).
Hint: You will need to use multi-subscripted array
Hi there, I have read the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
Hello Sir,
I would love to do your work...I have read the requirements and I can do the work as I have good experience in working with C...Contact me so we can talk further....
Thank you....