新增a*寻路
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
interface IAstarGraph<T> {
|
||||
getNeighbors(node: T): Array<T>;
|
||||
cost(from: T, to: T): number;
|
||||
heuristic(node: T, goal: T);
|
||||
}
|
||||
Reference in New Issue
Block a user