Welcome to Battleship, the classic naval warfare game where strategy and luck collide!
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!
- 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.
- 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.
- 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.
- Victory:
- The first player to sink all of their opponent's ships wins the game!
- Click on a cell to place your ships during setup.
- Click on an enemy cell to target and attack during the game.
- Python 3.x
- Tkinter (Python GUI library)
- Ensure you have Python installed on your system.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run the following command: python battleship.py
Fl0wwDev
This project is licensed under the MIT License.