DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,911 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Sohshun Tateishi
Sohshun Tateishi

Posted on

Terminal Battleship Game

First Project!

First post on DEV and first real mini project on my own!
Heres a Battleship game you can play in your terminal that uses python. Theres a couple things in here that I liked and didn't like.

Likes:

  • You can autogenerate a board with the ships randomly placed in valid areas!
  • Fairly intuitive and visually alright considering it is only used in terminal.
  • Was able to learn a little more about error handling and user experience.

Needs Improvement:

  • Some inputs are not checked if they are completely valid or not. i.e. somethings are only checked to see if input was an int and not necessarily a valid number to be used.
  • Wish there was an easier way to make both the board showing your ships and your guesses in the same area so they are not stacked.

Image description

Top comments (0)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›