A childhood boardgame played by many, I wanted to depict this in my own skillset of python in order to create a greater memorable experience.

The python Battleship will ask you for your board size, it will then ask you to place your battleships. Once they have been placed the game will begin and you will be able to choose locations to hit ships.

I built it by taking each step at a time, first I wanted to focus on the Main.py and build from there. With each part I took on the board class which required a major amount of time to think how I would format the board visually. It then all came to a conclusion when i started working on the print lines and the game came to life.

Challenges I ran into were the board class, it was extremely difficult to come up with the board class on my own using the self-size class.

I am proud of completing the project within the desired time, and having it be a successful game which I feel is a realistic interpretation of the board game.

I learned essentially what it was to program a python-based game, and how important it is to focus on the visualization aspects of a project.

My submission won't end here, with this just being a website-based game I want to program it further potentially into an app where people can easily play battleship with their friends.

Built With

Share this project:

Updates