Skip to content

htilssu/BattleShip

Repository files navigation


Battle Ship Game

Battle Ship

Table of Contents

Introduction

Battle Ship Game is a classic naval combat game implemented in Java. The objective is to sink all enemy ships before your opponent sinks yours.

Features

  • Single Player Mode
  • Multiplayer Mode
  • User-friendly interface
  • Customizable game settings

Installation

  1. Clone the repository:
    git clone https://github.com/htilssu/BattleShip.git
  2. Navigate to the project directory:
    cd BattleShip
  3. Compile the project:
    javac -d bin src/*.java
  4. Run the game:
    java -cp bin Main

Usage

  • Start the game by running the command above.
  • Follow the on-screen instructions to place your ships and take turns shooting at the enemy grid.
  • The game ends when all ships of one player are sunk.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with a clear description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

Created by htilssu - feel free to contact me!


You can edit this template as needed. Would you like me to update the README.md file in your repository with this content?