/Todo

Primary LanguageJava

Codacy Badge Build Status

INF112 TODO

Project setup

With IDE: Windows, Linux, MacOS

First you need to install a Java IDE, such as IntelliJ or Eclipse.

Then you need to import the project from version control, as a Maven project.
Specify pom.xml as the configuration file.

To run the project you need to run the main class located at: inf112.desktop.Main.

If you encounter an error its probably because Maven is not correctly importet. Usally you will get a popup to add Maven. If not try to close the IDE and reopen. If that doesn't fix try going to maven setting in you're Java IDE, and try to download sources and reimport "all Maven projects"

PS: you might need to set the working directory to the "assets" folder.

How to play

To start the application run the Main-class, this opens the application. You now have the option to either exit the application, play SinglePlayer or MultiPlayer. Multiplayer gives you the option to host or join game. At this point multiplayer shows players connected, but then starts a normal SinglePlayer game. Pressing SinglePlayer gives you the option to start the game, go back or select map.

Controls:

  1. Pick cards by clicking on them, you can remove a picked card by clicking on the card again. Press "Confirm" to confirm cards.
  2. Clicking "Hide UI" hides your cards and stats.
  3. Pressing P activates powerdown
  4. Pressing Z activates debugging controls

Debug controls:

  1. Move the robot using the arrowkeys (Up for forward, Down for backwards, Left and Right for turning Left and Right)
  2. Press the C key to change the robots checkpoint. (This happens automatically when the robot walks over a flag)
  3. Press SPACE to move the robot back to the checkpoint
  4. Press T for all mapbased movement. Conveyorbelts, Gears, Pushers ect..
  5. Press L for all the lasers to fire

How to run tests

The J-Unit tests that are included can be run by simply rightclicking the (/src/test/java/inf112.core/) inf112.core folder and clicking "Run tests in 'inf112.core'". Alternatively by pressing "ctrl + shift + f10"

Manual tests are run according to the instructions in the ObligatoriskOppgave files found in deliverables.