View the step-by-step solution to:

How do i program such a game using 2 dimensional lists .

How do i program such a game using 2 dimensional lists . The purpose of this assignment is to develop a battleship game with the below instructions,20181101_183101.jpg20181101_183115.jpg20181101_184338.jpg20181101_184338.jpgthe requirement of the game are defined as follows:

  • The mission of the player is to eliminate the battleship of their opponent.
  • The game should have a 20 rows x 60 columns size,which you should mask the area with # characters
  • The game should allow player to choose among 3 stages of difficulties. For example Beginner:80 ships , intermediate: 50 ships and advance:20 ships
  • each ship should be in length of 5 characters
  • The location of the ships should be random and should not be visible to the player.
  • The player is required to choose the location to boom by entering coordinates (row, col). The program should validate the coordinates entered to ensure they are valid.
  • Unmask the location which has been boomed. If there's a ship at that location, unmask the whole ship.
  • Each player begins with 15 booms. The screen should display the number of boom left as the game progresses.
  • Game will end when player successfully destroyed 5 ships without exhausted all their booms. The screen should display the total number of attempts the player has taken, and show the appropriate ending message, for example: If total attempts between 13-15: display "You are a novice" ,If total attempts between 10-12: "Not too bad" and If total attempts < 10: "You have the talent!.
  • Or, game will end if player not able to destroy 5 ships and has no remaining booms. The screen should display the message "You've no luck today, try again.
  • You are required to use two-dimensional lists and functions to develop your solution. Furthermore, you are encouraged to include any additional controls,validations, or messages as deemed fit.
  • Download Attachments:



Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question