diff --git a/src/functions/node.ts b/src/functions/node.ts index 92e48a0..164b65c 100644 --- a/src/functions/node.ts +++ b/src/functions/node.ts @@ -4,7 +4,7 @@ import { State } from '../utils/state'; import { calcHeuristicValue } from './heuristic'; import { applyOperation } from './operations'; -function generateNodeList(node: NodeInfo, goalState: State, gValue: number){ +function generateNodeList(node: NodeInfo, goalState: State, gValue: number): NodeInfo[]{ let childrenNodes: NodeInfo[] = []; const childUp = generateAndTest(operations.up, node, goalState, gValue); if (childUp){