Difference between revisions of "Sokoban Level 1a"

From NetHackWiki
Jump to navigation Jump to search
m (Added a YouTube video link.)
(Copyedit, update version)
Line 1: Line 1:
This first [[Sokoban]] level is not very hard. The level has 12 [[boulder]]s and 10 [[pit]]s, so 2 boulders are spare. In the level (as well as in level [[Sokoban Level 1b|1b]]) are two [[scroll of earth|scrolls of earth]].
+
'''Sokoban Level 1a''' is one of two possible maps for the first level of [[Sokoban]] in ''[[NetHack]]'' and its variants. The level has 12 [[boulder]]s and 10 [[pit]]s, leaving 2 spare boulders.
  
 
<div class="ttymap">{{lightgray|<replacecharsblock>
 
<div class="ttymap">{{lightgray|<replacecharsblock>
Line 29: Line 29:
 
----  --------
 
----  --------
 
</replacecharsblock>}}</div>
 
</replacecharsblock>}}</div>
Note that if a monster gets to the room with the scrolls of earth, he may try to read one. Thus, try to lure them to the bottom right room, where that scroll will have less disastrous effects.
+
 
== Strategy ==
+
==Strategy==
 
The following solution solves the level without putting any boulders in an immobile position. Faster solutions which do not necessarily leave every boulder free might exist.
 
The following solution solves the level without putting any boulders in an immobile position. Faster solutions which do not necessarily leave every boulder free might exist.
  
Line 65: Line 65:
 
  ----  --------
 
  ----  --------
  
Pick up the two scrolls of earth, then clean the upper right room. There are several ways to do this, here is one.
+
Pick up the two [[scroll of earth|scrolls of earth]] to ensure that no monsters get a hold of them, then clean the upper right room. There are several ways to do this, with one displayed below:
  
 
  -------- ------ '''F''' r
 
  -------- ------ '''F''' r
Line 125: Line 125:
 
  <nowiki>-----------------------------</nowiki>
 
  <nowiki>-----------------------------</nowiki>
 
|}
 
|}
{{nethack-360}}
+
{{nethack-366}}
 
[[Category:Sokoban|1a]]
 
[[Category:Sokoban|1a]]

Revision as of 17:54, 11 June 2022

Sokoban Level 1a is one of two possible maps for the first level of Sokoban in NetHack and its variants. The level has 12 boulders and 10 pits, leaving 2 spare boulders.

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

Strategy

The following solution solves the level without putting any boulders in an immobile position. Faster solutions which do not necessarily leave every boulder free might exist.

You can also watch an instructional TTYREC video or a YouTube video.

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.

This is the starting position. First, clear the way into the lower right room:

-------- ------ A d
|<|@...---....| B rrrr
|^|-.AB....C..| H dd
|^||..DE|.F.G.|
|^||....|.....|
|^|------H----|
|^|    |......|
|^------......|
|..^^^^IJKL...|
|??-----......|
----   --------

Clear the lower right room:

-------- ------ J u
|<|>...---....| I l*
|^|-......BC..| L u
|^||.ADE|.F.G.| K llll*
|^||....|.....| L dlll lll*
|^|------.----| H dlll lll*
|^|    |.@....| J dlll llll u*
|^------.H....|
|..^^^^IJKL...|
|??-----......|
----   --------

Pick up the two scrolls of earth to ensure that no monsters get a hold of them, then clean the upper right room. There are several ways to do this, with one displayed below:

-------- ------ F r
|<|>...---....| B ddld dddl llll lllu u*
|^|-......BC..| G dlll dddd llll llll uuu*
|^||.ADE|.F.G.| F lldd dddl llll lllu uuu*
|^||....|.....| C ddll dddd llll llll uuuu u*
|^|------.----|
|^|    |......|
|.------......|
|.............|
|.@-----......|
----   --------

Take one of the remaining boulders and finish the level:

-------- ------  E urrr ddld dddl llll lllu uuuu u*
|<|>...---....|
|^|-..........|
|.||.ADE|.....|
|@||....|.....|
|.|------.----|
|.|    |......|
|.------......|
|.............|
|..-----......|
----   --------

Next level

After this level, you will face either of the following levels:

Sokoban Level 2a
 ----          -----------
--.@--------   |.........|
|..........|   |.........|
|.0-----0-.|   |.........|
|..|...|.0.|   |....<....|
|.0.0....0-|   |.........|
|.0..0..|..|   |.........|
|.----0.--.|   |.........|
|..0...0.|.--  |.........|
|.---0-...0.------------+|
|...|..0-.0.^^^^^^^^^^^^.|
|..0......----------------
-----..|..|
    -------
Sokoban Level 2b
-----------       -----------
|....|....---     |.........|
|..00|00...@|     |.........|
|.....0...---     |.........|
|....|....|       |....<....|
|-.---------      |.........|
|..0.|.....|      |.........|
|.00.|0.0.0|      |.........|
|..0.....0.|      |.........|
|.000|0..0.----------------+|
|....|..0.0.^^^^^^^^^^^^^^^.|
-----------------------------