Hello, I need to do something like a structure where the elements are matrix (3x3):
graph.frontier = [[3x3],[3x3],[3x3],[3x3]];
where I would like to append any new element to graph.frontier, so I can use an index to work with it.
I've tryed this:
graph.frontier = ;
initial_state = [7,2,4;5,0,6;8,3,1];
graph.frontier = append(initial_state);
But it didn't work. I'll use this to implement a BFS algo to solve a 8-tile puzzle.