Download cmd Sea Battle

cmd Sea Battle

Version:2.0.4
License: Free for Windows
826 downloads
Checked for viruses
?
Tested on virustotal
Version
2.0.4
Updated
Compatibility
Windows 10, Windows 11
Size
0.01 MB
Architecture
x32/x64
Language
English

Description

cmd Sea Battle is a Battleship game written in Python that runs in the command line. The gameplay is identical to the classic version of the game. As of June 23, 2025, the code has been completely rewritten in Python and significantly optimized. If you encounter any bugs, please report them in the reviews.

To run the program, you need to have Python installed on your system, also install colorama library: pip install colorama. Then, in the game directory, execute:

python main.py

Use the following command-line options:

  • python main.py -w
    Enables a faster game mode where the program doesn’t wait for input after each computer turn. Instead, all moves are displayed as a list.
  • python main.py -c
    Saves the opponent’s ship layout to a file named positions.txt at the start of the game.

Field symbols in the game (see screenshots):

  • . — Empty cell
  • * — Miss
  • @ — Your ship
  • + — Hit
  • # — Sunk

Rating

4.5
6 ratings
Click, for a quick estimate

Leave a review

Your name*
Your email*
Comment*

Reviews