Skip to content

sah0725/battleship-2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

battleship-2d

A simple 2D terminal-based Battleship game built in Python.

🚢 Terminal Battleship Game (2D)

A simple and fun terminal-based 2D Battleship game written in Python.

🎯 Objective

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!

🧠 Game Features

  • 2D grid display
  • Ship placed randomly (horizontal or vertical)
  • Input validation
  • Tracks hits, misses, and tries left
  • Game ends with a win or reveal

🕹️ How to Play

python battleship.py

About

A simple 2D terminal-based Battleship game built in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages