Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Make a Battleships game. The user must be able to choose their difficulty level

ID: 3795085 • Letter: M

Question

Make a Battleships game. The user must be able to choose their difficulty level (similar to minesweeper): “e” for easy mode (5 x 5 program board size) “m” for medium mode (6 x 6 program board size) “h” for hard mode (7 x 7 program board size) Must use at least 4 pre-populated player boards per level (aka there should be 4 player 1 and player 2 board combinations that you manually develop) Must use random number generator (to randomly choose populated game board for each player) Must refresh terminal screen after each player’s move Must display “*” on every location on both player’s board at the start of each game. Must display a “X” on every “Hit” made by the player on each player’s board. Must accept user input for Row & Column combination(s) Write in objc oriented C++( data structures and algorithms ,advanced c++

Explanation / Answer

Pseudo code:

  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  
  Initialize boards    Get User 1 name    Get User 2 name    while playing      Get User's move      Validate User's move      Mark User's move      Was the User's move a hit?          Mark Hit      else          Mark Miss        Is the enemy sunk?          Show the winner      else          Switch to the next user  done    
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote