Difference between revisions of "Sokoban Level 2b"

From NetHackWiki
Jump to navigation Jump to search
m (pothole)
 
(18 intermediate revisions by 13 users not shown)
Line 1: Line 1:
Although this [[sokoban]] level has the most boulders it is not very hard. There are 20 boulders and 16 pits.
+
'''Sokoban Level 2b''' is one of the two standard maps for the second level of [[Sokoban]] in ''[[NetHack]]''. It is also among the various possible maps for that level in variants of ''NetHack''; in [[Hack'EM]], the map is named '''"Squared Off"'''. There are 20 [[boulder]]s and 15 [[hole]]s, leaving 5 spare boulders.
0 boulder
 
^ pit
 
@ starting position/downstairs
 
< upstairs
 
  
  -----------      -----------
+
  -----------      ----------- 0 boulder
  |....|....---    |.........|
+
  |....|....---    |.........| ^ hole
  |..00|00...@|    |.........|
+
  |..00|00...@|    |.........| @ starting position/downstairs
  |.....0...---    |.........|
+
  |.....0...---    |.........| < upstairs
 
  |....|....|      |....<....|
 
  |....|....|      |....<....|
 
  |-.---------      |.........|
 
  |-.---------      |.........|
Line 19: Line 15:
  
 
== Strategy ==
 
== Strategy ==
The following solution solves the level without putting any blocks in an immobile position. Faster solutions which do not leave every boulder free 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. You can [http://alt.org/nethack/trd/?file=http://alt.org/nethack/userdata/t/tjraux02/ttyrec/2011-06-07.02:47:06.ttyrec.bz2 watch a TTYREC video of this solution] or [https://youtu.be/856hCXLbPDA 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 '''Nddrr*''' means move boulder '''N''' two times down and two times to the right into a pit.
+
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 '''Nddrr*''' means move boulder '''N''' two times down and two times to the right into a hole.
  -----------      -----------
+
 
  |....|....---    |.........|
+
Make way to the fourth room (lower right) by storing boulders in earlier rooms. It is not necessary to store as many boulders as in this example:
  |..AB|CD...@|    |.........|
+
 
  |.....E...---    |.........|
+
  -----------      ----------- '''E''' lllr rrrr u
 +
  |....|....---    |.........| '''G''' uuuu u
 +
  |..AB|CD...@|    |.........| '''N''' uuuu uur
 +
  |.....E...---    |.........| '''L''' rrrr r
 
  |....|....|      |....<....|
 
  |....|....|      |....<....|
 
  |-.---------      |.........|
 
  |-.---------      |.........|
Line 34: Line 33:
 
  |....|..S.T.^^^^^^^^^^^^^^^.|
 
  |....|..S.T.^^^^^^^^^^^^^^^.|
 
  -----------------------------
 
  -----------------------------
Make way to the fourth room (lower right) by storing boulders in earlier rooms. It is not necessary to store as many boulders as in this example.
 
Elllrrrrru
 
Guuuuu
 
Nuuuuuur
 
Lrrrrr
 
  
  -----------      -----------
+
Clear the 4th room with the exception of '''I''' and '''Q''':
  |....|....---    |.........|
+
  -----------      ----------- '''R''' r
  |.GAB|CDE..>|    |.........|
+
  |....|....---    |.........| '''T''' rr*
  |..N......---    |.........|
+
  |.GAB|CDE..>|    |.........| '''S''' rrrr r*
  |....|....|      |....<....|
+
  |..N......---    |.........| '''M''' ddrr rrr*
  |-.---------      |.........|
+
  |....|....|      |....<....| '''R''' drrr rr*
  |..F.|.....|      |.........|
+
  |-.---------      |.........| '''K''' dddr rrrr r*
  |..H.|I.J.K|      |.........|
+
  |..F.|.....|      |.........| '''L''' rrdd rrrr rrr*
 +
  |..H.|I.J.K|      |.........| '''J''' dddr rrrr rrrr r*
 
  |......@LM.|      |.........|
 
  |......@LM.|      |.........|
 
  |..OP|Q..R.----------------+|
 
  |..OP|Q..R.----------------+|
 
  |....|..S.T.^^^^^^^^^^^^^^^.|
 
  |....|..S.T.^^^^^^^^^^^^^^^.|
 
  -----------------------------
 
  -----------------------------
Clear the 4th room with the exception of '''I''' and '''Q'''.
 
Rr
 
Trr*
 
Srrrrr*
 
Mddrrrrr*
 
Rdrrrrr*
 
Kdddrrrrrr*
 
Lrrddrrrrrrr*
 
Jdddrrrrrrrrrr*
 
  
  -----------      -----------
+
Clear the 3rd room (lower left) with the exception of '''F''':
  |....|....---    |.........|
+
  -----------      ----------- '''O''' urrr rrrr ddrr rrrr rrr*
  |.GAB|CDE..>|    |.........|
+
  |....|....---    |.........| '''P''' urrr rrrd drrr rrrr rrr*
 +
  |.GAB|CDE..>|    |.........| '''H''' ldrr rrrr rrdd rrrr rrrr rrr*
 
  |..N......---    |.........|
 
  |..N......---    |.........|
 
  |....|....|      |....<....|
 
  |....|....|      |....<....|
Line 74: Line 61:
 
  |....|.............^^^^^^^^.|
 
  |....|.............^^^^^^^^.|
 
  -----------------------------
 
  -----------------------------
Clear the 3th room (lower left) with the exception of '''F'''.
 
Ourrrrrrrddrrrrrrrrr*
 
Purrrrrrrddrrrrrrrrrr*
 
Hldrrrrrrrrddrrrrrrrrrrr*
 
  
  -----------      -----------
+
Clear the 2nd room (upper left) with the exception of '''B''', and finish off with the two boulders from the 4th room.:
  |....|....---    |.........|
+
  -----------      ----------- '''G''' dddd ddrr rrrr rrdd rrrr rrrr rrrr*
  |.GAB|CDE..>|    |.........|
+
  |....|....---    |.........| '''N''' lddd ddrr rrrr rrdd rrrr rrrr rrrr r*
  |..N......---    |.........|
+
  |.GAB|CDE..>|    |.........| '''A''' ddld dddr rrrr rrrd drrr rrrr rrrr rrr*
  |....|....|      |....<....|
+
  |..N......---    |.........| '''Q''' ulll rrrr rrrd drrr rrrr rrrr rrrr*
 +
  |....|....|      |....<....| '''I''' dlll rrrr rrrd drrr rrrr rrrr rrrr r*
 
  |-.---------      |.........|
 
  |-.---------      |.........|
 
  |..F.|.....|      |.........|
 
  |..F.|.....|      |.........|
Line 91: Line 75:
 
  |....|................^^^^^.|
 
  |....|................^^^^^.|
 
  -----------------------------
 
  -----------------------------
Clear the 2nd room (upper left) with the exception of '''B'''.
 
Gddddddrrrrrrrrddrrrrrrrrrrrr*
 
Nldddddrrrrrrrrddrrrrrrrrrrrrr*
 
Addlddddrrrrrrrrddrrrrrrrrrrrrrr*
 
Finish off with the two boulders from the 4th room.
 
Qulllrrrrrrrddrrrrrrrrrrrrrrr*
 
Idlllrrrrrrrddrrrrrrrrrrrrrrrr*
 
  
 +
The level is now finished:
 
  -----------      -----------
 
  -----------      -----------
 
  |....|....---    |.........|
 
  |....|....---    |.........|
Line 111: Line 89:
 
  |....|.....................@|
 
  |....|.....................@|
 
  -----------------------------
 
  -----------------------------
 +
 +
==Next level==
 +
After this level, you will face either of the following levels:
 +
 +
{| class="prettytable"
 +
|[[Sokoban Level 3a]]
 +
<nowiki>  --------</nowiki>
 +
<nowiki>---.|....|</nowiki>
 +
<nowiki>|...0....|----------</nowiki>
 +
<nowiki>|.-.00-00|.|.......|</nowiki>
 +
<nowiki>|.00-......|.......|</nowiki>
 +
<nowiki>|.-..0.|...|.......|</nowiki>
 +
<nowiki>|....-0--0-|...<...|</nowiki>
 +
<nowiki>|..00..0...|.......|</nowiki>
 +
<nowiki>|.--...|...|.......|</nowiki>
 +
<nowiki>|....-0|---|.......|</nowiki>
 +
<nowiki>---..0.-----------+|</nowiki>
 +
<nowiki>  |..0@^^^^^^^^^^^.|</nowiki>
 +
<nowiki>  ------------------</nowiki>
 +
|[[Sokoban Level 3b]]
 +
<nowiki>--------------------</nowiki>
 +
<nowiki>|........|...|.....|</nowiki>
 +
<nowiki>|.00..-00|.-.|.....|</nowiki>
 +
<nowiki>|..|.0.0.|00.|.....|</nowiki>
 +
<nowiki>|-.|..-..|.-.|..<..|</nowiki>
 +
<nowiki>|...--.......|.....|</nowiki>
 +
<nowiki>|...|.0.-...-|.....|</nowiki>
 +
<nowiki>|.0.|0.|...--|.....|</nowiki>
 +
<nowiki>|-0.|..-----------+|</nowiki>
 +
<nowiki>|..0....^^^^^^^^^^.|</nowiki>
 +
<nowiki>|...|.@-------------</nowiki>
 +
<nowiki>--------</nowiki>
 +
|}
 +
{{nethack-367}}
 +
[[Category:Sokoban|2b]]

Latest revision as of 10:32, 31 July 2023

Sokoban Level 2b is one of the two standard maps for the second level of Sokoban in NetHack. It is also among the various possible maps for that level in variants of NetHack; in Hack'EM, the map is named "Squared Off". There are 20 boulders and 15 holes, leaving 5 spare boulders.

-----------       ----------- 0 boulder
|....|....---     |.........| ^ hole
|..00|00...@|     |.........| @ starting position/downstairs
|.....0...---     |.........| < upstairs
|....|....|       |....<....|
|-.---------      |.........|
|..0.|.....|      |.........|
|.00.|0.0.0|      |.........|
|..0.....0.|      |.........|
|.000|0..0.----------------+|
|....|..0.0.^^^^^^^^^^^^^^^.|
-----------------------------

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 watch a TTYREC video of this solution 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 hole (and thus removed the boulder from the game). So Nddrr* means move boulder N two times down and two times to the right into a hole.

Make way to the fourth room (lower right) by storing boulders in earlier rooms. It is not necessary to store as many boulders as in this example:

-----------       ----------- E lllr rrrr u
|....|....---     |.........| G uuuu u
|..AB|CD...@|     |.........| N uuuu uur
|.....E...---     |.........| L rrrr r
|....|....|       |....<....|
|-.---------      |.........|
|..F.|.....|      |.........|
|.GH.|I.J.K|      |.........|
|..L.....M.|      |.........|
|.NOP|Q..R.----------------+|
|....|..S.T.^^^^^^^^^^^^^^^.|
-----------------------------

Clear the 4th room with the exception of I and Q:

-----------       ----------- R r
|....|....---     |.........| T rr*
|.GAB|CDE..>|     |.........| S rrrr r*
|..N......---     |.........| M ddrr rrr*
|....|....|       |....<....| R drrr rr*
|-.---------      |.........| K dddr rrrr r*
|..F.|.....|      |.........| L rrdd rrrr rrr*
|..H.|I.J.K|      |.........| J dddr rrrr rrrr r*
|......@LM.|      |.........|
|..OP|Q..R.----------------+|
|....|..S.T.^^^^^^^^^^^^^^^.|
-----------------------------

Clear the 3rd room (lower left) with the exception of F:

-----------       ----------- O urrr rrrr ddrr rrrr rrr*
|....|....---     |.........| P urrr rrrd drrr rrrr rrr*
|.GAB|CDE..>|     |.........| H ldrr rrrr rrdd rrrr rrrr rrr*
|..N......---     |.........|
|....|....|       |....<....|
|-.---------      |.........|
|..F.|.....|      |.........|
|..H.|I....|      |.........|
|..........|      |.........|
|..OP|Q....----------------+|
|....|.............^^^^^^^^.|
-----------------------------

Clear the 2nd room (upper left) with the exception of B, and finish off with the two boulders from the 4th room.:

-----------       ----------- G dddd ddrr rrrr rrdd rrrr rrrr rrrr*
|....|....---     |.........| N lddd ddrr rrrr rrdd rrrr rrrr rrrr r*
|.GAB|CDE..>|     |.........| A ddld dddr rrrr rrrd drrr rrrr rrrr rrr*
|..N......---     |.........| Q ulll rrrr rrrd drrr rrrr rrrr rrrr*
|....|....|       |....<....| I dlll rrrr rrrd drrr rrrr rrrr rrrr r*
|-.---------      |.........|
|..F.|.....|      |.........|
|.@..|I....|      |.........|
|..........|      |.........|
|....|Q....----------------+|
|....|................^^^^^.|
-----------------------------

The level is now finished:

-----------       -----------
|....|....---     |.........|
|...B|CDE..>|     |.........|
|.........---     |.........|
|....|....|       |....<....|
|-.---------      |.........|
|..F.|.....|      |.........|
|....|.....|      |.........|
|..........|      |.........|
|....|.....----------------+|
|....|.....................@|
-----------------------------

Next level

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

Sokoban Level 3a
  --------
---.|....|
|...0....|----------
|.-.00-00|.|.......|
|.00-......|.......|
|.-..0.|...|.......|
|....-0--0-|...<...|
|..00..0...|.......|
|.--...|...|.......|
|....-0|---|.......|
---..0.-----------+|
  |..0@^^^^^^^^^^^.|
  ------------------
Sokoban Level 3b
--------------------
|........|...|.....|
|.00..-00|.-.|.....|
|..|.0.0.|00.|.....|
|-.|..-..|.-.|..<..|
|...--.......|.....|
|...|.0.-...-|.....|
|.0.|0.|...--|.....|
|-0.|..-----------+|
|..0....^^^^^^^^^^.|
|...|.@-------------
--------