This application draws a grid on a Pixelflut server intended to solve several challenges. It has been used on last years Hacky Easter and will be reused for following events.
First download the latest runnable jar from the release page. It can also build on your machine, for that see the section below.
Execute the jar like the snippet below to start it up.
java -jar Pixelflut Challenge Playground-1.0.0.jar --host 127.0.0.1
There are some parameters which configure the application:
--host
: The host of the pixelflut server.
--port
or -p
: The port of the pixelflut server (default: 1234
)
--controlport
or -c
: The port for the rest commands for clearing areas. (default: 4321
)
The CLI gives you following options for interaction.
Available commands:
quit -> Quit application
blank -> Wipes the whole screen
blank center-> Wipes the centered challenge area
blank <id> -> Wipes one playground (left to right starting at 0 from top left)
blank <id> <sector> -> Wipes one playground sector (sector are counted clockwise, starting top left)
The application can also be controlled via GET calls. Following endpoints are available:
/ping
: Just a ping
/blank/center
: Wipes out the center area.
/blank/<id>
: Wipes out a playground (same as blank <id>
from CLI)
/blank/<id>/<sector>
: Wipes out one playground sector (same as blank <id> <sector>
from CLI)
To build the application yourself, clone it to your machine first.
To create the executable jar execute this command inside the repository folder ./gradlew shadowJar
and the artifact will be build.
It can be found under build/libs/*.jar
.