Skip to content

Welcome to Battleship, the classic naval warfare game where strategy and luck collide!

Notifications You must be signed in to change notification settings

Fl0wwDev/battleship-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Game ⚓️💥

Welcome to Battleship, the classic naval warfare game where strategy and luck collide!

About

Battleship is a turn-based game where players strategically deploy their fleet of ships on a grid and take turns guessing the coordinates of their opponent's ships to sink them. Sink all your opponent's ships before they sink yours to win!

Features

  • Intuitive interface with a grid to place ships and target enemy ships.
  • Single-player mode against a computer AI.
  • Multiplayer mode for playing with a friend on the same device.
  • A variety of ship sizes to choose from, including destroyer, submarine, cruiser, battleship, and aircraft carrier.
  • Sound effects to enhance the gaming experience.

Game Rules

  1. Placement Phase:
    • Each player secretly places their ships on their own grid.
    • Ships can be placed vertically or horizontally but cannot overlap or extend beyond the grid.
  2. Attack Phase:
    • Players take turns guessing the coordinates to fire their shots.
    • Hit an enemy ship to damage it, and sink all parts of the ship to destroy it.
  3. Victory:
    • The first player to sink all of their opponent's ships wins the game!

Controls

  • Click on a cell to place your ships during setup.
  • Click on an enemy cell to target and attack during the game.

Requirements

  • Python 3.x
  • Tkinter (Python GUI library)

How to Run

  1. Ensure you have Python installed on your system.
  2. Clone this repository to your local machine.
  3. Navigate to the project directory.
  4. Run the following command: python battleship.py

Author

Fl0wwDev

License

This project is licensed under the MIT License.

About

Welcome to Battleship, the classic naval warfare game where strategy and luck collide!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published