Question: THE ULTIMATE BATTLISHIPS (SALVO MODE) . This code should be written in C++. Classic game Battleships is a very famous paper-and-pencil guessing game for two
THE ULTIMATE BATTLISHIPS (SALVO MODE) . This code should be written in C++.







Classic game Battleships is a very famous paper-and-pencil guessing game for two players Its initial implementation is dated back to World War-I. Each player requires two grids whiclh are usually 10x10 to play the game. However the grid size may vary depending on the type of game. Individual squares (cells) in the grid (board) are identified by a letter (a.b.c,d.e.f..) and a number (1,2.3.4,5,6.. On one grid the player arranges his/her ships and records the shots by the opponent. On the other grid the player records his/her own shots At the beginning of the game, each player secretly arranges their ships on their primary grid Each ship occupies a number of consecutive squares on the grid. The number of squares for each ship is determined by the type of the ship. The ships cannot overlap (i.e., only one ship can occupy any given square in the grid). The types and numbers of ships allowed are the same for each player. Classical Battleships Game Description: On each grid the players arrange ships and record the shots of the opponent. The types and numbers of ships allowed are the same for each player. There are 4 types of ships in this version of the game: Type of Ship Size Number of distinct Shooting Capacity number of cells occupiedd) hits to sunk Aircraft Carrier5 Battleshi Submarine Patrol Boat 4 3 4 After the ships have been positioned, the game proceeds in a series of rounds. In each round each player takes a turn to announce a target square in the opponent's grid which is to be shot at. The computer then announces whether or not the square is occupied by a ship (in other words hi" or "miss"!). If all of a player's ships have been sunk. the game is over and their opponent wins Classic game Battleships is a very famous paper-and-pencil guessing game for two players Its initial implementation is dated back to World War-I. Each player requires two grids whiclh are usually 10x10 to play the game. However the grid size may vary depending on the type of game. Individual squares (cells) in the grid (board) are identified by a letter (a.b.c,d.e.f..) and a number (1,2.3.4,5,6.. On one grid the player arranges his/her ships and records the shots by the opponent. On the other grid the player records his/her own shots At the beginning of the game, each player secretly arranges their ships on their primary grid Each ship occupies a number of consecutive squares on the grid. The number of squares for each ship is determined by the type of the ship. The ships cannot overlap (i.e., only one ship can occupy any given square in the grid). The types and numbers of ships allowed are the same for each player. Classical Battleships Game Description: On each grid the players arrange ships and record the shots of the opponent. The types and numbers of ships allowed are the same for each player. There are 4 types of ships in this version of the game: Type of Ship Size Number of distinct Shooting Capacity number of cells occupiedd) hits to sunk Aircraft Carrier5 Battleshi Submarine Patrol Boat 4 3 4 After the ships have been positioned, the game proceeds in a series of rounds. In each round each player takes a turn to announce a target square in the opponent's grid which is to be shot at. The computer then announces whether or not the square is occupied by a ship (in other words hi" or "miss"!). If all of a player's ships have been sunk. the game is over and their opponent wins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
