Installing the Ludii Tutorials Repository¶
The Ludii Tutorials repository on GitHub provides various code examples to go along with some of the tutorials on these pages. This page lists the steps required to run these code examples locally:
- Clone the repository from: https://github.com/Ludeme/LudiiTutorials.
- Create a
Javaproject in your favourite IDE, using the source code in the cloned repository.
- Suppose that the repository was cloned in the directory
<install_dir>/LudiiTutorials, which already contains
docsdirectories. Create a new directory
<install_dir>/LudiiTutorials/libsalongside them, and place the
Ludii.jarfile (downloaded from Ludii’s downloads page) in it.
- Set up the project in your IDE to use the
Ludii.jarfile as a library. Most of the code requires this as a dependency.
- Also set the project to use the other two
.jarfiles that are already included in
<install_dir>/LudiiTutorials/libsas libraries; these are only required for the unit tests in this repository.