Name: Anonymous 2010-05-21 8:51
'sup /prog/, I'm trying to create a c-based program to solve tipover (http://www.puzzlebeast.com/crate/) puzzles and generate a file with all the moves for the fastest solution(min number of moves) . So far, I'm thinking of doing a tree with 4 directions (N,S,E,W), a list with temporary boards and a queue with the movements made.
I was thinking of doing it breadth-first, but I'm having trouble coming up with an algorithm for breadth-first GENERATION of the tree (i.e. a level at a time, if it reaches the solution it stops, avoiding having to build the whole tree). Does anybody have any suggestions?
I was thinking of doing it breadth-first, but I'm having trouble coming up with an algorithm for breadth-first GENERATION of the tree (i.e. a level at a time, if it reaches the solution it stops, avoiding having to build the whole tree). Does anybody have any suggestions?