Skip to content

FurkanOzdemir33759/BattleShip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BattleShip

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.

Run on Your Machine

Prerequisites

  1. 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

Instructions

Using Command Line

Clone the Repository

Open your terminal (Command Prompt on Windows) and execute the following commands:

git clone https://github.com/FurkanOzdemir33759/BattleShip.git
cd BattleShip

Compile the Project

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 Project

Run the compiled main class using the following command:

java -cp out Main

Platform Specific Notes

Linux and macOS

  1. 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.
  2. Use a terminal application to run the commands.

Windows

  1. Use Command Prompt or PowerShell to run the commands.
  2. Ensure the environment variables are set correctly for Java. You can set the JAVA_HOME and update the Path variable in the System Properties.

References

About

CS320 Project Repository of Our Team

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages