# Sokoban Level 3d

This is one of the new possible maps for the third level of Sokoban in SLASH'EM, and may appear as a second floor map in DynaHack and UnNetHack. It has 12 boulders and holes, leaving no spare boulders.

In UnNetHack, this level may be flipped horizontally or vertically like all Sokoban levels.

```         ---------- 0 boulder
-----|.^^^^^..| ^ hole
----...-|<-----..| > starting position/downstairs
|..0....---...|^-- < upstairs
|.0>0.0....0..|^|
|.|0--------.-|^|
|.|..0..|.....|^|
|.|.0.0.|.|...|^|
--.|..0|.|.----|^|
|..--....|.....|^|
|....0.|.|.......|
-----.--.........|
|.0...........|
|...---.......|
----- ---------
```

## Strategy

The following solution may not be very fast or organized. Improvements welcome. Like all Sokoban levels it can be solved without making any boulders 'stick'.

All boulders are replaced by letters so they can be referred to. Moving the boulders is shortened to r for right, l for left, u for up, d for down. An asterisk is used to denote the last move filled a hole (and thus removed the boulder from the game). So "N ddrr*" means move boulder N two times down and two times to the right into a hole.

Note: If a creature, e.g. a pet, followed you up the stairs to this level you may find yourself placed outside the ring of boulders. In such a case, the level is still solvable following the first steps in a different order dependent on which side of A you landed.

First, you'll want to prepare the boulders as you go through the middle, around the top and out into the large open area:

```         ---------- F dd
-----|.^^^^^..| G r
----...-|<-----..| J dr
|..A....---...|^-- K d
|.B@C.D....E..|^|  A rr
|.|F--------.-|^|  E rl
|.|..G..|.....|^|
|.|.H.I.|.|...|^|
--.|..J|.|.----|^|
|..--....|.....|^|
|....K.|.|.......|
-----.--.........|
|.L...........|
|...---.......|
----- ---------
```

The first boulders can now be funneled out through the bottom:

```         ---------- L ____ ____ rrrr rrrr rrru uu*
-----|.^^^^^..| J ll
----...-|<-----..| K d___ ____ rrrr rrrr rrru uuu*
|....A..---...|^-- J ddd_ ____ rrrr rrrr rrru uuuu*
|.B>C.D....E@.|^|  H dddd d___ rrrr rrrr rrru uuuu u*
|.|.--------.-|^|  I lldd ddd_ rrrr rrrr rrru uuuu uu*
|.|...G.|.....|^|
|.|FH.I.|.|...|^|
--.|...|.|.----|^|
|..--..J.|.....|^|
|......|.|.......|
-----K--.........|
|.L...........|
|...---.......|
----- ---------
```

The remaining boulders travel along the outside of the level in a U-shape:

```         ---------- B l___ ____ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uu*
-----|.^^^^^..| A l
----...-|<-----..| C lll_ ____ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uuu*
|....A..---...|^-- A dlll ____ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uuuu ul*
|.B>C.D....E..|^|  D llll l___ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uuuu ull*
|.|.--------.-|.|  E llll llll ll_ dddd ddrr rddr rrrr rrrr rruu uuuu uuuu ulll*
|.|...G.|.....|@|  F uuul l___ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uuuu ulll l*
|.|F....|.|...|.|  G lllu ull_ ___ dddd ddrr rddr rrrr rrrr rruu uuuu uuuu ulll ll*
--.|...|.|.----|.|
|..--....|.....|.|
|......|.|.......|
-----.--.........|
|.............|
|...---.......|
----- ---------
```

The level is now complete:

```         ----------
-----|..@.....|
----...-|<-----..|
|.......---...|.--
|..>..........|.|
|.|.--------.-|.|
|.|.....|.....|.|
|.|.....|.|...|.|
--.|...|.|.----|.|
|..--....|.....|.|
|......|.|.......|
-----.--.........|
|.............|
|...---.......|
----- ---------
```

## Next level

The stairs up leads to the final level of Sokoban: