DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 970,177 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

Oldest comments (0)

๐ŸŒš Friends don't let friends browse without dark mode.

Sorry, it's true.