Skip to content

Instantly share code, notes, and snippets.

View madmenyo's full-sized avatar
🙂
When can I start?

Menno Gouw madmenyo

🙂
When can I start?
View GitHub Profile
@benruijl
benruijl / Example.java
Created August 18, 2012 09:28
Java pathfinding utility class
package pathfinding;
import pathfinding.Grid2d;
public class Example {
public Example() {
double[][] map = { { 0, 1, 2 }, { 3, 3, 2 }, { 0, -1, 0 } };
Grid2d map2d = new Grid2d(map, false);
System.out.println(map2d.findPath(0, 0, 2, 2));
}