🚢
Py-Battleship


Battleship is a Python command line game.
The player can choose the size of the grid, from 5x5 up to 15x15, and the ship will be randomly placed in that grid. The size of the grid also determines the number of turns the user gets, from 5 to 15.
The game handles incorrect entries and can be replayed repeatedly.
Download main.py, change to the directory where you downloaded the file and run it using python3 main.py
Py-Battleship is built with the following tools and libraries:
Yes - the top-level main.py is a pure-stdlib console game (os.system screen-clears were removed); battleship_v2 is also a stdlib-only CLI game.