Re: OT ? How to solve sokoban level 8

Glynn Clements <[email protected]> Mon, 8 Aug 2005 20:07:32 +0100
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
[email protected] wrote:

> during a break I tried to solve sokoban level 8 - no way.
> Can someone help ?

It's definitely soluble.

I found the tricky part to be getting to a state where you can push
blocks away from the top-left corner.

The following sequence of moves (where * indicates a push):

  down
  down
  right
  up
  right
  right
* right
  down
  right
  right
  right
* up
* up
  right
  up
  up
  left
  up
  up
* left
* left
  down
  down
* left
* left

should get you to the following state; paste it into the sokoban
buffer (after C-x C-q to disable read-only) to get a better view.

++####++++++++++++++
++#++###########++++
++#++$+++++$+$+#++++
++#+$#+$+#++$++#++++
++#$@++$++#++++#++++
###+$#+#$+####+#++++
#+#$+$+$++##+++#++++
#+++++$#+#+++#+#++++
#+++$++++$+$+$+#++++
#####++#########++++
++#++++++#++++++++++
++#++++++#++++++++++
++#......#++++++++++
++#......#++++++++++
++#......#++++++++++
++########++++++++++

>From here on, it should be straightforward.

PS: it has just occurred to me that it wouldn't be a lot of work to
add demo recording and playback using the sokoban-undo-list data.

-- 
Glynn Clements <[email protected]>