Iamadam
2011-05-13 07:42:49
Hey hey
I am currently writing a dungeoneering script, and I need to solve the sliding puzzle (3x3 grid, need to slide each tile to the right place).
I think I'll use A*, but not too sure.
Just wondering if anyone else wants to do this bit for me?
Not sure how many here are capable, its university level programming - but its a great challenge.
The reason I ask is because there are just so many puzzles I need to write solvers for, and it'd be great if someone could lend a hand :)
All I need is the logic. So It needs to receive a state, and output a list of moves to get to the completed state. (Pro-tip: use a long to store the game state, 4 bits for each position).
If anyone can do it, they receive full credit on script release.
Otherwise I'll get around to it.
Just thought you programming junkies might enjoy the challenge :P
I am currently writing a dungeoneering script, and I need to solve the sliding puzzle (3x3 grid, need to slide each tile to the right place).
I think I'll use A*, but not too sure.
Just wondering if anyone else wants to do this bit for me?
Not sure how many here are capable, its university level programming - but its a great challenge.
The reason I ask is because there are just so many puzzles I need to write solvers for, and it'd be great if someone could lend a hand :)
All I need is the logic. So It needs to receive a state, and output a list of moves to get to the completed state. (Pro-tip: use a long to store the game state, 4 bits for each position).
If anyone can do it, they receive full credit on script release.
Otherwise I'll get around to it.
Just thought you programming junkies might enjoy the challenge :P