Visit out website at http://lihq.me, or read the Assessment 4 documentation at http://docs4.lihq.me
Before you can start working on the game you need to ensure you have Java installed and the latest JDK, you can get java here:
and the JDK here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
You also need the Intellij IDEA IDE, you can get this from here:
https://www.jetbrains.com/idea/#chooseYourEdition
The free version is good enough although the paid version is obtainable for free for students.
Once both of these are installed you need to:
It will then import the game, this may take some time.
One common problem is to do with a missing JDK, This is a solution : Configure -> Project Defaults -> Project Structure then add your JDK in Platform Settings -> SDKs. Some other problems have solutions here.
You can now edit the game , we recommend making a new branch, then make changes on that branch. You can use GitHub desktop or equivalent to commit the changes to your branch and then use sync to upload those changes. When you are ready submit a pull request and have someone check it.
You can run by first building as described below and then simply clicking run.
To build the game use the built in run configuration Desktop in the same way that you run tests.
This project is tested using JUnit. Tests are located within the /game/tests
directory. For test documentation, please see https://github.com/junit-team/junit4/wiki
We have included a handy test configuration that can be ran from intellij.
/game/tests/src
When naming the class end the name with UnitTests
for consistency e.g. PlayerUnitTests
GameTester
this initialises the backend of the game so that test run correctly. org.junit.Test
@Test
decorator above itWe have included test coverage for the project, which is run alongside the tests on CircleCI. The test coverage results can be seen in the 'Artifacts' tab of CircleCI.