console Sea Battle is a classic Battleship game implemented in Python and designed to run in the command line. The gameplay faithfully follows the traditional rules of the board game. As of June 23, 2025, the code has been completely rewritten and significantly optimized.
Now the game folder includes two ways to launch the game:
You’ll need Python installed on your system, along with the colorama library. To install it, run:
pip install colorama
Then launch the game with:
python main.py
A precompiled executable file is also included, which does not require Python. Simply run:
./csb
Make sure the file has execute permissions. If necessary, grant them with: chmod +x csb
Examples:
python main.py -w ./csb -c
. — Empty cell * — Miss @ — Your ship + — Hit # — Sunk
If you encounter any bugs or issues, please report them in the feedback section.
To rate console Sea Battle (Linux) you need to register or log in on our website
Mail domain must match the domain of the developer's site
A link to confirm registration was sent to your email