Forum:Sokobon diagonal movement "You cannot pass that way"

From NetHackWiki
Revision as of 09:20, 11 December 2023 by Ais523 (talk | contribs) (why Sokoban doesn't allow diagonal moves)
Jump to navigation Jump to search


I can't move diagonally in Sokoban. I've tried taking off all armor and dropping anything, but I always get "You cannot pass that way". I'm using NetHack 3.6.7. — Preceding unsigned comment added by Mgm7734 (talkcontribs)

Because you can't squeeze diagonally past boulders unless you're on a level you've already solved. Sokoban branch rules are fairly straightforward. --Umbire the Phantom (talk) 22:51, 11 July 2023 (UTC)
The Sokoban level is an homage to the Japanese game Sokoban, which was created in 1981 by Hiroyuki Imabayashi, and became quite popular. The original game didn't allow diagonal moves, likely because it would have been to easy to solve if you could move diagonally, so Nethack's Sokoban levels don't allow them either (at least, as Umbire points out, until you've solved the puzzle). --Skrizzle (talk) 03:14, 23 October 2023 (UTC)
I got a computer to generate some Sokoban levels designed around the principle that the character could move, and push boulders, diagonally. In general they seem to be much more difficult for humans than the orthogonal version. I put an example below (the goal is to push all the boulders out through the gap at the south side of the level, imagine a row of holes there); you might want to try solving it yourself, which will probably give insight into why diagonal moves are banned. Ais523 (talk) 09:19, 11 December 2023 (UTC)
 -----      
--...-----  
|..-.....|  
|.000-0..|  
---.0..---  
  |.----    
 --.-|      
 |.0.---    
 |.000.|    
 |.0-0.|    
 |.--0.|    
 |.-0.--    
 |...--     
 ---@|      
   -.-