Skip to content

Repository files navigation

Basic Java fighting game

Description

The project is based on a mock-exam exercise my university professor gave us for our "Programming 1" course. The main objective is to get a basic understanding of OOP, specifically, how Java implements the concepts of Object Oriented Programming.

The project includes a custom exception class, an abstract class, two classes that implement the abstract class, file creation, and ArrayLists. The abstract class defines general character fields and methods, and the 'Archer' and 'Swordsman' classes extend and override these. The 'Game' class contains an inner 'Team' class, and together they form the core of this program.

The original problem description can be found here in Hungarian: https://okt.inf.szte.hu/prog1/gyakorlat/gyakorlat/files/kiugrozh.pdf

Languages and Utilities Used

  • Java

Environments Used

  • Debian 12 (Linux)
  • Visual Studio Code
  • Oracle VM Virtualbox

Program walk-through:

Open the folder in Visual Studio Code (make sure that all of the files are in the same folder), open a new terminal, and enter the following command to compile the code:

javac -d bin/ *.java
This creates a separate bin folder, where the Java bytecode ".class" files will be stored. Now run the program:

java -cp bin/ Main


Note

The program was compiled and executed using the default Debian JDK and JRE. The quick install guide for the debian JRE and JDK files can be found here: https://wiki.debian.org/Java

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages