Question: python please: For this assignment you will program a GUI version of a basic one player game of Battleship. The design of the GUI and

python please: For this assignment you will program a GUI version of a basic one player game of Battleship. The design of the GUI and the method of user input are up to you.
The play field is represented as a 20 X 20 grid of cells. Each of the 5 ships may take up one or more cells. The ship sizes are:
Ship 13 cells
Ship 22 cells
Ship 34 cells
Ship 42 cells
Ship 53 cells
At the beginning of the game, the computer will randomly place each of the 5 ships on the playfield. Each ship must be fully on the playfield and no two ships may overlap. Ships may occupy adjacent shells, but two ships may not share the same cell.
The user is then prompted to choose a cell and the playfield is updated accordingly if the users guess misses or hits a ship. When each cell of a ship has been hit, that ship is sunk. Once all 5 ships have been sunk, the game is over and the total number of guesses the user made is displayed.
Part 2:
Implement a two-player game. Instead of the computer randomly placing the ships, allow two players, each with their own playfield, to place their own ships, then take turns attacking each other. The first player to sink all the ships belonging to the other player wins.
Part 3:
Implement a two-player game as explained above but allow the game to be played over the network. Each player playing from their own computer.

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!