A simple 2D terminal-based Battleship game built in Python.
A simple and fun terminal-based 2D Battleship game written in Python.
Guess the location of a hidden ship placed randomly on a 5x5 grid. You have a limited number of tries to sink the entire ship!
- 2D grid display
- Ship placed randomly (horizontal or vertical)
- Input validation
- Tracks hits, misses, and tries left
- Game ends with a win or reveal
python battleship.py