Difference between revisions of "Sokoban Level 1a"

From NetHackWiki
Jump to navigation Jump to search
(Solution)
 
(22 intermediate revisions by 13 users not shown)
Line 1: Line 1:
'''[[Sokoban]] Level 1a''' is not very hard. The level has 12 boulders and 10 holes, so 2 boulders are spare. In the level (as well as in level 1b) are two scrolls of earth.
+
'''Sokoban Level 1a''' is one of two possible maps for the first level of [[Sokoban]] in ''[[NetHack]]'', and is among the various possible maps for that level in variants of ''NetHack''. The level has 12 [[boulder]]s and 10 [[pit]]s, leaving 2 spare boulders.
  
0 boulder
+
<div class="ttymap">{{lightgray|<replacecharsblock>
^ pit
+
<=[[Stairs|{{white|<}}]]
  @ starting position/downstairs
+
>=[[Stairs|{{white|>}}]]
< upstairs
+
^=[[pit|{{gray|^}}]]
? scroll of earth
+
  =&nbsp;
 +
|={{white|&#124;}}
 +
-={{white|-}}
 +
0={{white|0}}
 +
?={{white|?}}
 +
? ={{gray|? }}
 +
0 ={{gray|0 }}
 +
^ ={{gray|^ }}
 +
< ={{gray|< }}
 +
> ={{gray|> }}
 +
newline=<br>
  
-------- ------
+
-------- ------ 0 boulder
|<|@...---....|
+
|<|>...---....| ^ pit
|^|-.00....0..|
+
|^|-.00....0..| > starting position/downstairs
|^||..00|.0.0.|
+
|^||..00|.0.0.| < upstairs
|^||....|.....|
+
|^||....|.....| ? scroll of earth
|^|------0----|
+
|^|------0----|
|^|    |......|
+
|^|    |......|
|^------......|
+
|^------......|
|..^^^^0000...|
+
|..^^^^0000...|
|??-----......|
+
|??-----......|
----  --------
+
----  --------
 +
</replacecharsblock>}}</div>
 +
 
 +
==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 [http://alt.org/nethack/trd/?file=http://alt.org/nethack/userdata/t/tjraux02/ttyrec/2011-06-07.01:19:42.ttyrec.bz2 watch an instructional TTYREC video] or [https://youtu.be/W85ztF2_rYU a YouTube video].
  
== Strategy ==
+
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.
The following solution solves the level without putting any blocks in an immobile position. Faster solutions which do not leave every boulder free exist.
 
  
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.
+
This is the starting position. First, clear the way into the lower right room:
  
  -------- ------
+
  -------- ------ '''A''' d
  |<|@...---....|
+
  |<|@...---....| '''B''' rrrr
  |^|-.AB....C..|
+
  |^|-.AB....C..| '''H''' dd
 
  |^||..DE|.F.G.|
 
  |^||..DE|.F.G.|
 
  |^||....|.....|
 
  |^||....|.....|
Line 33: Line 48:
 
  |^------......|
 
  |^------......|
 
  |..^^^^IJKL...|
 
  |..^^^^IJKL...|
  |..-----......|
+
  |??-----......|
 
  ----  --------
 
  ----  --------
Make your way into the lower right room:
 
Ad
 
Brrrr
 
Hdd
 
  
  -------- ------
+
Clear the lower right room:
  |<|>...---....|
+
 
  |^|-......BC..|
+
  -------- ------ '''J''' u
  |^||.ADE|.F.G.|
+
  |<|>...---....| '''I''' l*
  |^||....|.....|
+
  |^|-......BC..| '''L''' u
  |^|------.----|
+
  |^||.ADE|.F.G.| '''K''' llll*
  |^|    |.@....|
+
  |^||....|.....| '''L''' dlll lll*
 +
  |^|------.----| '''H''' dlll lll*
 +
  |^|    |.@....| '''J''' dlll llll u*
 
  |^------.H....|
 
  |^------.H....|
 
  |..^^^^IJKL...|
 
  |..^^^^IJKL...|
 
  |??-----......|
 
  |??-----......|
 
  ----  --------
 
  ----  --------
Clear the lower right room
+
 
Ju
+
Pick up the two [[scroll of earth|scrolls of earth]] as soon as possible 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.
Il*
+
 
Lu
+
Clean the upper right room. There are several ways to do this, with one displayed below:
Kllll*
+
 
Ldllllll*
+
  -------- ------ '''F''' r
Hdllllll*
+
  |<|>...---....| '''B''' ddld dddl llll lllu u*
Jdlllllllu*
+
  |^|-......BC..| '''G''' dlll dddd llll llll uuu*
Pickup the two scrolls of earth. Remember to '#name' them and do not read them in sokoban except when you misplaced some other boulders. First check whether they are blessed or cursed.
+
  |^||.ADE|.F.G.| '''F''' lldd dddl llll lllu uuu*
  -------- ------
+
  |^||....|.....| '''C''' ddll dddd llll llll uuuu u*
  |<|>...---....|
 
  |^|-......BC..|
 
  |^||.ADE|.F.G.|
 
  |^||....|.....|
 
 
  |^|------.----|
 
  |^|------.----|
 
  |^|    |......|
 
  |^|    |......|
Line 71: Line 80:
 
  |.@-----......|
 
  |.@-----......|
 
  ----  --------
 
  ----  --------
Clean the upper left room. There are several ways to do this, here is one.
 
Fr
 
Bddlddddlllllllluu*
 
Gdlllddddlllllllluuu*
 
Flldddddlllllllluuuu*
 
Cddllddddlllllllluuuuu*
 
  
  -------- ------
+
Take one of the remaining boulders and finish the level:
 +
 
 +
  -------- ------ '''E''' urrr ddld dddl llll lllu uuuu u*
 
  |<|>...---....|
 
  |<|>...---....|
 
  |^|-..........|
 
  |^|-..........|
Line 89: Line 94:
 
  |..-----......|
 
  |..-----......|
 
  ----  --------
 
  ----  --------
Take one of the remaining boulders and finish the level.
 
Eurrrddlddddrrrrrrrruuuuuu*
 
  
  -------- ------
+
==Next level==
  |<|>...---....|
+
After this level, you will face either of the following levels:
  |.|-..........|
+
{| class="prettytable"
  |@||.AD.|.....|
+
|[[Sokoban Level 2a]]
  |.||....|.....|
+
  <nowiki> ----         -----------</nowiki>
  |.|------.----|
+
  <nowiki>--.@--------  |.........|</nowiki>
  |.|   |......|
+
<nowiki>|..........|   |.........|</nowiki>
  |.------......|
+
<nowiki>|.0-----0-.|  |.........|</nowiki>
  |.............|
+
  <nowiki>|..|...|.0.|  |....<....|</nowiki>
  |..-----......|
+
<nowiki>|.0.0....0-|  |.........|</nowiki>
  ----   --------
+
<nowiki>|.0..0..|..|  |.........|</nowiki>
The remaining two boulders are free to move and should be checked for wands, rings or food
+
  <nowiki>|.----0.--.|   |.........|</nowiki>
 +
  <nowiki>|..0...0.|.--  |.........|</nowiki>
 +
<nowiki>|.---0-...0.------------+|</nowiki>
 +
  <nowiki>|...|..0-.0.^^^^^^^^^^^^.|</nowiki>
 +
<nowiki>|..0......----------------</nowiki>
 +
<nowiki>-----..|..|</nowiki>
 +
<nowiki>    -------</nowiki>
 +
|[[Sokoban Level 2b]]
 +
<nowiki>-----------      -----------</nowiki>
 +
<nowiki>|....|....---    |.........|</nowiki>
 +
<nowiki>|..00|00...@|    |.........|</nowiki>
 +
<nowiki>|.....0...---    |.........|</nowiki>
 +
  <nowiki>|....|....|       |....<....|</nowiki>
 +
  <nowiki>|-.---------      |.........|</nowiki>
 +
  <nowiki>|..0.|.....|      |.........|</nowiki>
 +
<nowiki>|.00.|0.0.0|      |.........|</nowiki>
 +
<nowiki>|..0.....0.|      |.........|</nowiki>
 +
  <nowiki>|.000|0..0.----------------+|</nowiki>
 +
<nowiki>|....|..0.0.^^^^^^^^^^^^^^^.|</nowiki>
 +
  <nowiki>-----------------------------</nowiki>
 +
|}
 +
{{nethack-366}}
 +
[[Category:Sokoban|1a]]

Latest revision as of 19:09, 11 June 2022

Sokoban Level 1a is one of two possible maps for the first level of Sokoban in NetHack, and is among the various possible maps for that level in variants of NetHack. 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 as soon as possible 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.

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.^^^^^^^^^^^^^^^.|
-----------------------------