Skip to content

Install instructions

Haeki edited this page Mar 26, 2016 · 41 revisions

Installation

Simple:

Just download JavaKara from here and the files from the repository.
Open a labyrinth from the example world and enter the following code in the editor:

PathFinder pathFinder;
public void myProgram() {
  pathFinder = new PathFinder(tools, world, kara);
  pathFinder.start();
}

You must save your program in the same directory as the PathFinder source Files.


Advanced:

Since there is no function in kara to get the direction kara is facing it can cause some troubles if kara isn't facing in the right directon at the start.
The solution to fix this is to manipulate some code in the javakara.jar

  1. get the relevant file out of the javakara.jar.
  • open the javakara.jar with for example 7zip.

Clone this wiki locally