From b0789294f7332fa8b7927ced6aeae73a47875eba Mon Sep 17 00:00:00 2001 From: Alexandre Date: Fri, 3 Jul 2020 23:18:49 -0300 Subject: [PATCH] Update generateNodeList function --- src/functions/node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){