PROJECT EULER · #0313
Sliding Game
In a sliding game a counter may slide horizontally or vertically into an empty space. The objective of the game is to move the red counter from the top left corner of a grid to the bottom right corner; the space always starts in the bottom right corner. For example, the following sequence of pictures show how the game can be completed in five moves on a

Let

There are exactly
How many grids does
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.