Question: C#: Implement a multiplayer Battleship game with another player: The game is played on an NxN grid. Each player will place a specified collection of

C#:

Implement a multiplayer Battleship game with another player:

The game is played on an NxN grid.

Each player will place a specified collection of ships:

The ships will vary in length (size) from 2 to 5.

There can be any number or any size ship. There may be no ships of a particular size.

EXCEPT the battleship which there will always be 1 and only 1.

Player order will be random but fixed at the start of the game.

Each round consists of each player making a grid selection in turn.

Each grid selection will be played into all players grids including the current players grid.

Each player will respond with HIT, MISS, or SANK {ship name}.

If a players battleship is sunk that player is removed from the game.

Repeat from #4 until only 1 player remains.

That player is the winner.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!