This is a template for an exercise using the hamster simulator. it contains an exercise class which extends SimpleHamsterGame and a launcher class
- With your favorite IDE / Editor (Eclipse, IntelliJ, VS Code)
- Via command line:
mvn compile exec:java
- Update the hamster version in pom.xml line 10
- Change the module name in pom.xml line 5
- Update the package sheet number. SimpleHamsterGames can also be added to subpackages. Also update the package name at
- all java classes in the package
- module-info.java (each package needs an export statement)
- the config
- maven exec plugin mainClass in pom.xml
- the test cases
- Remove the already existing launch configuration
- Update the README so that it contains useful information for students
- Add a nameOfTheGame class which extends SimpleHamstergame (like TemplateHamsterGame)
- Also create a {nameOfTheGame}App.java with the main method
- Add the new App class to config.json
- Add a new launch configration file via eclipse
- Import the project in Eclipse
- Open the
...App.javafile and execute the SimpleHamsterGame - Open Run Configurations...
- Select the ...App configuratin under Java Application
- Open Tab Common, change Local file to Shared file
- Click apply, a new configuration file should be generated by Eclipse
- (Maybe) add a new execution to the maven exec plugin in pom.xml
- (Maybe) add a new territory to
src/main/resources/territories