Question: Imagine we are using a two-dimensional array at the basis for creating the game battleship In the game of battleship '-' character entry in the
Imagine we are using a two-dimensional array at the basis for creating the game battleship In the game of battleship '-' character entry in the array represents ocean (i.e. not a ship), a '#' character represents a place in the ocean where part of a ship is present, and an 'H' character represents a place in the ocean where part of a ship is present and has been hit by a torpedo.... Imagine we are using a two-dimensional array at the basis for creating the game battleship In the game of battleship '-' character entry in the array represents ocean (i.e. not a ship), a '#' character represents a place in the ocean where part of a ship is present, and an 'H' character represents a place in the ocean where part of a ship is present and has been hit by a torpedo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
