views:

592

answers:

3

"Unblock Me" is an iPhone game (screenshot here: http://www.kiragames.com/games/unblockme-free.) I was wondering how would one go about solving this programmatically and what class of algorithms help out here.

Has anyone cracked this?

+3  A: 

It's just a graph search with nodes being board state and edges being valid moves. If you can think of a good heuristic then you could use a slightly smarter graph search like A*

Donnie
+2  A: 

The more familiar name of this game is "Rush Hour":

http://www.google.com/search?&q=%22rush+hour%22+puzzle+algorithm

Bart Kiers
The common name really opens up google's capabilities, yes
wowest
Indeed, that's why I posted the link to Google, which is normally not acceptable at SO, I believe.
Bart Kiers
A: 

I'm afraid you have no other option than brute force search. Although with best-first search, using a clever heuristic and eliminating repeated states, I imagine the search space is not that big.

Rui Ferreira

related questions