Skip to content

AntsForBreakfast/Battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Game (Terminal Edition)

A simple terminal Battleship game built in Python.

Python version: Python 3.13.5
Requirements: Terminal with Unicode and ANSI support

Installation

git clone https://github.com/AntsForBreakfast/Battleship

Run

cd Battleship
python main.py

Game

Battleships - a game where each sides trying to destroy opponents ships. A game ends when one of the sides loses all the ships.

Symbols

Empty cell ▢
Ship cell ▢ ▢ ▢
Missed ship ◎
Player strike ◉
Enemy strike ▢ ▢ ▢

Game menu

Type in the console the desired action

image

Setup Phase

Game starts with a phase to place your ships in a board.
Next phase starts when all ships were placed.

image

Ship selection

Using terminal input ship number from the red field.

image

Coordinate system in setup phase

Coordinates are entered column first and than row in a style F7.

image

Provide the starting coordinates and the system will present a set of possible end coordinates. To select an end coordinate, type the corresponding coordinates from the options provided in the terminal.

Example of previously used start coordinates: F7

image

Coordinate system in game phase

Choose a coordinates on a board and input them in terminal to attempt at striking an opponent ships

Game Phase

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages