This is a desktop version of the classic board game called BattleShip.
This project was implemented as a group project for the CS 320 course offered at Özyeğin University during the Spring Term of 2024.
- Java Development Kit (JDK): Ensure you have JDK installed on your machine. You can download it from Oracle's official site or use a package manager:
- macOS:
brew install openjdk
- Linux: Use your distribution's package manager, e.g.,
sudo apt-get install openjdk-11-jdk
- Windows: Download from Oracle's official site
- macOS:
Open your terminal (Command Prompt on Windows) and execute the following commands:
git clone https://github.com/FurkanOzdemir33759/BattleShip.git
cd BattleShip
Navigate to the directory containing your src folder. Compile the Java files using the following command:
javac -d out -sourcepath src src/Main.java
Run the compiled main class using the following command:
java -cp out Main
- Ensure you have the necessary permissions to execute the scripts/commands. If needed, you can change file permissions using chmod, e.g., chmod +x filename.
- Use a terminal application to run the commands.
- Use Command Prompt or PowerShell to run the commands.
- Ensure the environment variables are set correctly for Java. You can set the JAVA_HOME and update the Path variable in the System Properties.