Skip to content

SQAHamster/HamsterExerciseTemplate

Repository files navigation

About

This is a template for an exercise using the hamster simulator. it contains an exercise class which extends SimpleHamsterGame and a launcher class

How to use

  • With your favorite IDE / Editor (Eclipse, IntelliJ, VS Code)
  • Via command line: mvn compile exec:java

To Change

General

  1. Update the hamster version in pom.xml line 10
  2. Change the module name in pom.xml line 5
  3. 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
  4. Remove the already existing launch configuration
  5. Update the README so that it contains useful information for students

For each game

  1. Add a nameOfTheGame class which extends SimpleHamstergame (like TemplateHamsterGame)
  2. Also create a {nameOfTheGame}App.java with the main method
  3. Add the new App class to config.json
  4. Add a new launch configration file via eclipse
    1. Import the project in Eclipse
    2. Open the ...App.java file and execute the SimpleHamsterGame
    3. Open Run Configurations...
    4. Select the ...App configuratin under Java Application
    5. Open Tab Common, change Local file to Shared file
    6. Click apply, a new configuration file should be generated by Eclipse
  5. (Maybe) add a new execution to the maven exec plugin in pom.xml
  6. (Maybe) add a new territory to src/main/resources/territories

About

The template for a hamster exercise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages