You are on page 1of 1

PROJECT REPORT

BATTLESHIP USING PYTHON

ABSTRACT
In this project you will build a simplified, one-player version of the classic board game Battleship
In this version of the game, there will be a single ship hidden in a random location on a 5x5 grid.
The player will have 4 guesses to try to sink the ship .To build this game we will use our
knowledge of if/elif/else, conditionals and functions in Python. 

APPROACH USED
While Battleship has a set a rules that logically determine who wins a round of Battleship,
coding up these rules would require a number of if/elif/else clauses in this mini-project code. A
simpler method for determining the winner is that user choice is compare with computer
Random choice and decide the winner based on that.

RESULTS
A simpler method for determining the winner is that user choice is compare with computer
Random choice and decide the winner based on that.
Miss condition:
1. They can enter a guess that's off the board.
2. They can guess a spot they’ve already guessed.
3. They can just miss the ship.

You might also like