Skip to content
Michael Hoglan edited this page Sep 21, 2015 · 1 revision

The challenge is wrapped in a server that can be interacted with through HTTP.

The server can ran a couple different ways:

Docker

This is probably the easiest if you have a local Docker environment, just download and run the container.

docker pull docker.io/mhoglan/npuzzlechallenge
docker run -d --name npuzzlechallenge -p 8080:8080 -p 8081:8081 mhoglan/npuzzlechallenge

You can build the docker image locally if wanted instead of pulling. Uses alpinelinux to build a minimal java environment.

docker build -t mhoglan/npuzzlechallenge .

Interact with the server at http://<docker-container-ip>:8080

Java

You can build the project locally with maven or use the shaded jar and configuration file that have been uploaded on the releases page.

mvn clean install package
java -jar nPuzzle-1.0-SNAPSHOT.jar server puzzleConfiguration.yaml

An example puzzleConfiguration.yaml can be found at src/main/resources/puzzleConfiguration.yaml

Interact with the server at http://localhost:8080/

On the releases page, a shaded JAR has been generated and stored.

Clone this wiki locally