Five habits that solve most sliding puzzles
In a sliding puzzle the pieces don't stop where you want them to. They slide until something stops them. I've built two hundred of these for Snooze Slide, and had a program solve every one of them, and the same five habits keep turning up in the solutions.
If you haven't played, the rules take a minute: one swipe moves every cat, a cat must stop on its own bed, and a sleeping cat becomes a wall.
1. Start from the bed, not from the cat
Look at the bed first and ask what could stop a cat on it. A cat only stops when the next square is a wall, a pot or another cat (later rooms add cushions and a few other stoppers). So stand on the bed and look in all four directions:
- Is there a wall or a pot right next to it? Then a cat sliding in from the opposite side will stop there.
- Is there nothing next to it? Then nothing can stop there yet. Something has to be put beside the bed first, and in this game that something is usually another cat, asleep.
I ask this one first on every level.
2. Count the stoppers in each row and column
A slide follows one line, a row or a column. Before you swipe, run your eye along the line the cat is about to travel and find the first thing in it. That is where the cat will be after the swipe, every time. There is no luck in it.
It sounds too simple to say, but most wrong swipes come from picturing where you want the cat to go, not where the line actually ends.
3. Decide who sleeps first
Once a cat is asleep it is a wall for good. That cuts both ways. A sleeping cat can be the stopper another cat needs, or it can sit in the only line another cat could have used.
So for each pair of cats ask: does this one need the other as a wall, or does it need the other out of its way? In 28 of the game's 190 levels with more than one cat, only one cat can go to bed first at all. When a level feels impossible, it is usually because the wrong cat went to bed first.
4. Watch the cat you are not thinking about
Every swipe moves every cat that is awake. While you steer one cat toward its bed, the others are sliding too, and one of them may slide out of the spot you needed it in, or into its bed before you were ready.
Before you swipe, trace the line for each cat. With three cats that is three lines. It takes two seconds and it is the difference between a plan and a hope.
5. Use undo to think
You can't hold a whole level in your head, and you don't have to. Try a swipe and look at what the room looks like now. If it's worse, undo it. There is no penalty for undoing in Snooze Slide, and no timer.
One warning from the numbers: in at least 63 of the 200 levels, one to three careless swipes can leave the cats in a position that can no longer be won. The game tells you as soon as that happens, so you never grind away at a lost position.
And one fact that may help you stop looking
In 147 of the 200 levels there is exactly one way to reach the best score. So if you have found a solution in the best number of swipes, there usually isn't a second one hiding. Enjoy the three stars and go to the next room.