新增a*寻路

This commit is contained in:
yhh
2020-06-09 19:45:09 +08:00
parent 9e0d14da7c
commit 0fd33be5f9
14 changed files with 998 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
interface IAstarGraph<T> {
getNeighbors(node: T): Array<T>;
cost(from: T, to: T): number;
heuristic(node: T, goal: T);
}