Skip to content

Commit

Permalink
Update generateNodeList function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreKavalerski committed Jul 4, 2020
1 parent ab8935c commit b078929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit b078929

Please sign in to comment.