Skip to content
bobob

Puzzle1-10 min

Sokoban

Push the crates onto the marked squares

Loading the game...

How to play

  1. 1The orange circle is the worker, and every wooden crate has to end up on one of the round marks on the floor. A crate standing on a mark changes colour.
  2. 2Walk one square at a time with the arrow keys or WASD. If a crate stands in the direction you walk and the square beyond it is empty, the crate slides one square.
  3. 3Tap an empty square and the worker walks there around the crates; tap a crate next to the worker and it gets pushed that way. On a phone you can swipe across the board to move one square, or use the direction buttons underneath.
  4. 4If a crate gets wedged in a corner, or crates block each other so no crate can reach a mark any more, they turn red and a line under the board says so. Undo (Z) has no limit, and Restart (R) starts just this level again.
  5. 5Get every crate onto a mark and the level ends and the next one opens. The level button shows which levels you have solved and the stars you earned, and 'My fewest' at the top of the screen is the lowest number of pushes you have managed on this level.
  6. 6The record panel below the board collects levels solved, levels solved in the fewest pushes, your total pushes so far, and how many days in a row you have played.

Controls

Arrow keys / WASD
Walk one square, pushing a crate if one stands in front (after tapping the board once, or reaching it with Tab)
Click / tap
Walk to an empty square, or push the crate next to you
Swipe
Walk or push one square in the direction you swiped (phone)
Z / Backspace
Undo one move (no limit on how many times)
R
Restart this level

Tips

  • Before pushing a crate, check that there is somewhere for the worker to stand on the other side. To push it right, you have to be able to stand in the square to its left.
  • A corner with no mark in it is a crate's grave. Push a crate into the square where two walls meet and it can never come out, which is why it turns red straight away.
  • A crate against a wall can only move along that wall. If there is no mark anywhere on that wall's line, do not put a crate against it.
  • Fill the marks deepest in, or down a dead end, before the ones near the entrance. Fill the entrance marks first and you block the path the other crates need.
  • Do not ration your undos when you are stuck. Only pushes count towards the stars - steps and undos make no difference at all.

What is Sokoban?

Sokoban came out of Japan in 1982, and the name means warehouse keeper. You are the worker, moving crates that lie about the floor onto the marked squares, and the rules are very short. You walk one square at a time up, down, left or right, and if a crate stands in the direction you walk, you push it one square. Crates cannot be pulled, and you can only ever push one at a time.

That single rule - no pulling - is where all the thinking comes from. Shove a crate into a corner and it is gone for good; a crate against a wall can only slide along that wall. Two crates side by side against a wall stop each other dead. So before every push you find yourself asking which side you have to push this crate from, and whether you can even get to that side, and the habit of looking a few moves ahead builds itself.

The 30 levels here were made by dragging crates backwards out of a finished layout, and a computer then searched every possibility to confirm the fewest pushes each one needs. Levels 1-2 have one crate, 3-8 have two, 9-24 have three and 25-30 have four. Match the fewest pushes and you get three stars, finish within 1.5 times that and you get two, and anything more gets one.

The game also watches for dead ends on your behalf. Squares like corners, from which no crate could ever reach a goal, are worked out in advance, and it goes further and spots positions where nothing can move at all any more - four crates packed into a 2x2 block holding each other in place, for instance. Crates like that turn red. Undo has no limit, so when you are stuck you just take it back.

Frequently asked questions

Can all 30 levels really be solved?

Yes. A computer solved every one of the 30 from its starting layout to the end, which is also how the fewest number of pushes was confirmed. That figure is the 'Fewest' shown at the top of the screen.

How are the stars awarded?

On pushes alone. Match the fewest possible and you get three stars; finish within 1.5 times that, rounded up, and you get two; more than that gets one. The number of steps you walked and how often you used undo have no effect on the stars.

The next level is locked.

Levels open one ahead of the furthest you have solved. Finish the level in front of you and the next one unlocks, and you can go back to any solved level at any time to try it in fewer pushes.

Where is my progress stored?

The level you were last on, the fewest pushes per level, your record panel and your run of daily boards are all stored in this browser only. There is no sign-in and nothing is kept on a server, so clearing your browser data starts you over.

What does a red crate mean?

It means that crate can no longer reach any marked square. Both cases are caught: a crate wedged in a corner, and crates blocking one another so that nothing can move at all. Once a crate goes red the level cannot be finished, so use undo (Z) or restart (R).

Similar games

All Puzzle games