# Sokoban Level 1p

Sokoban Level 1p is a new possible map for Sokoban that appears in GruntHack. It has 10 boulders and 8 pits, leaving two spare boulders.

---
----   -->-- 0 boulder
|??-----...| ^ pit
|..^^^..00.| > starting position/downstairs
|^----.|.0.| < upstairs
|^|---.|.0.| ? scroll of earth
|^||.0.|0..|
|^||..0|.0.|
|^||.0..0..|
|<||..--...|
------------

## Strategy

The following solution solves the level without making any boulders 'stick', but may not be the fastest solution possible; improvements on solving and move organization are welcome.

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 pit (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 pit.

First set of moves:

```            ---
----   -->--
|..-----...| C l
|..^^^..AB.| H d
|^----.|.C.| D d
|^|---.|.D.| B d
|^||.E.|F..|
|^||..G|.H.|
|^||.I..J..|
|<||..--...|
------------
```

Second set of moves:

```            ---
----   -->--
|..-----...| A lll*
|..^^^..A..| B ulll ll*
|^----.|CB.| D uuul llll l*
|^|---.|...| H uuuu ulll llll ld*
|^||.E.|FD.|
|^||..G|...|
|^||.I..JH.|
|<||..--...|
------------
```

Pick up the two scrolls of earth to ensure that no monsters get a hold of them; remember to verify their beatitude before reading them in Sokoban, and only do so if you have misplaced or broken some other boulders.

Third set of moves:

```            ---
----   -->--
|..-----...| C ulll llll dd*
|..........| F uuul llll lldd d*
|.----.|C..| J uuuu ulll llll dddd*
|^|---.|...|
|^||.E.|F..|
|^||..G|...|
|^||.I..J..|
|<||..--...|
------------
```

Last set of moves:

```            ---
----   -->--
|..-----...| G uuuu llll lddd dd*
|..........|
|.----.|...|
|.|---.|...|
|.||.E.|...|
|.||..G|...|
|^||.I.....|
|<||..--...|
------------
```