Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 1.21 KB

README.md

File metadata and controls

30 lines (15 loc) · 1.21 KB

Playground

Use GitHub Codespaces to try out the Chariot Java library for accessing Lichess API.

Open in GitHub Codespaces

example.webm

Build

The Codespace contains a pre-built Maven project which is configured to create a Java runtime image of the application.

The project can be re-built via Terminal with:

mvn clean package

Run Example

The Maven project is configured to create a "launcher" named simple and can be run via Terminal with:

./modules/runtime/target/maven-jlink/default/bin/simple

The launcher is just a "shortcut" for running the default main-class of the playground module, which can also be done explicitly via Terminal with:

./modules/runtime/target/maven-jlink/default/bin/java --module playground

To run another main-class, say playground.example.ResultHandling, specify it via Terminal with:

./modules/runtime/target/maven-jlink/default/bin/java --module playground/playground.example.ResultHandling