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
- Java
- Debian 12 (Linux)
- Visual Studio Code
- Oracle VM Virtualbox
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/ *.javaThis creates a separate bin folder, where the Java bytecode ".class" files will be stored. Now run the program:
java -cp bin/ Main
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