Continue working on your project according to the instructions provided so far. Read the instructions on working program version. You should have been provided with the link to the GitHub Classroom within which you should create your own repository for your working program version.
Consider applying design patterns. You may apply also different ones than those we talked about in lectures. Often, a need for a particular design pattern shows up after the initial implementation. Do not hesitate to apply a design pattern additionally, by which you would do so-called refactoring: you will change the code, but you will retain its behavior.
While using your program, objects that represent provided or derived data should be created in the memory. In order avoid repeating the activities that lead to the creation of these objects upon each program start, you may store the corresponding objects using serialization.
knight = knightExpedition.getWarriors();by this line:
knight = (List<Knight>) knightExpedition.getWarriors();
If you want to provide your application in a compact form, you can pack it into a so-called JAR file. The details of working with JAR files are provided in the corresponding tutorial. We are going to take a look at an example of creating a simple JAR archive out of the game with ogres and knights (use your own version or the last lecture version):
jar cfe game.jar gui.ClashtGUI *With this command, you'll pack all the files in the current folder into a JAR archive named game.jar. The switches have the following meaning:
You run the JAR file by the following command (possibly even by a double click if there is a correct association with JVM):
java -jar game.jar