18
$\begingroup$

An entry in Fortnightly Topic Challenge #35: Restricted Title 1. Title based on this xkcd.
This is a continuation of Barrel - Part 1, but this puzzle is still self-contained.
Continued in Barrel - Part 3, Barrel - Part 4, and Barrel - Part 5.


Oh no Carol, there'll be barrel peril! This time, it's a $6\times 6$ warehouse, and you need to get a "special" red barrel out of the warehouse through the only exit. (it's "special" because it's actually dynamite, hence the peril. You don't want your warehouse to blow up.) You must do this without letting any other barrels out of the warehouse. To review, a barrel takes up one cell when upright, and two cells when laid down. Maneuvering the barrels works as follows:

  • An upright barrel can be tipped over to lie flat.
  • A laid down barrel can either roll to its sides or be propped up.

Specifically, consider the following image.

enter image description here

The solid barrels in this example can move to any of their adjacent outlines, assuming those spaces are unoccupied by other barrels. A barrel cannot move past the wall, either.

Here is a diagram of the warehouse, with the exit shown by the missing wall in the top right. Please show how to get the red barrel (dynamite) out of the warehouse. You are not explicitly required to do this in the minimum number of moves, but it's quicker to present the answer if there are fewer moves, no? Please feel free to combine several moves into a single image with arrows and/or text explanation in order to shorten the answer.

enter image description here

$\endgroup$
  • 1
    $\begingroup$ Can anyone help me come up with more appropriate/descriptive tags? The mechanics seem closer to rush-hour or sliding-blocks than grid-deduction, but those tags don't seem fitting either. $\endgroup$ – Riley May 31 '18 at 3:20
  • $\begingroup$ Seeing as you tend to create creatively different puzzles, I don't think you'll find an existing tag. I remember all the fun around the talk of a Riley tag as well. $\endgroup$ – Phylyp May 31 '18 at 4:56
  • 4
    $\begingroup$ This is a mechanical-puzzle at heart, and I don’t think it’s grid-deduction since solving this won’t be overly logic-reliant as far as I can see. $\endgroup$ – boboquack May 31 '18 at 6:09
  • 1
    $\begingroup$ Having spent more than an hour messing around with this puzzle, I'd say sliding-blocks and rush-hour are both adequate. The only difference is that some slides change the shape of the piece in a very clever and intuitive way. $\endgroup$ – Bass Jun 1 '18 at 2:44
  • $\begingroup$ @Bass Thank you for the feedback. I added those tags. $\endgroup$ – Riley Jun 1 '18 at 2:49
12
$\begingroup$

Here's my attempt (maybe I'll get graphical when I have the time, text only for now.)

First, label the non-dynamite barrels like this:

enter image description here

and develop a notation: <Barrel name>-<direction> means move the named barrel to the mentioned direction, by whichever means it can move there. (It will always be unique.)

Then, make the following moves:

1: D-up
2: E-up
3: K-up
4: L-up
5: J-right
6: N-up
7: N-up
8: Dynamite-up
9: Dynamite-up
10: J-left
11: K-down
12: L-Down
13: Dynamite-right
14: Dynamite-up
15: I-left
16: I-left
17: F-down
18: Dynamite-right
19: L-up
20: L-left
21: F-left
22: M-left
23: G-down
24: H-down
25: H-down
26: C-down
27: C-down
28: Dynamite-right
29: Dynamite-up
30: Dynamite-right

Not at all guaranteed to be the shortest way, and only mentally checked to work (please do double-check), but the Dynamite barrel never made any useless moves, and the other moves seemed pretty efficient too, so if there's a faster solution, it's not going to be very much faster.

EDIT: Chowzen created this brilliant animation:

enter image description here

Do check his comments below for more insanely helpful links :-)

EDIT 2: after staring at the animation for a while, this saves a move:

Omit move 16 entirely. Then, replace moves 19-21 with:

19: O-left
20: P-left
21: F-down

EDIT 3: looking for a shorter solution, I found a couple more 29s, and then this one with 26 moves:

1. D-up          11. K-down   21. Dynamite-right
2. E-up          12. L-down   22. Dynamite-right
3. K-up          13. I-left   23. Dynamite-right
4. L-up          14. I-up     24. Dynamite-up
5. J-right       15. M-left   25. Dynamite-up
6. N-up          16. G-down   26. Dynamite-right
7. N-up          17. H-down
8. Dynamite-up   18. H-down
9. Dynamite-up   19. C-down
10. J-left       20. C-down
$\endgroup$
  • $\begingroup$ I see that you answered first, but I won't be able to verify your answer for several hours. If it's correct, I'll accept. $\endgroup$ – Riley May 31 '18 at 17:45
  • 5
    $\begingroup$ Here's an animated graphic. :) $\endgroup$ – Chowzen May 31 '18 at 19:36
  • 4
    $\begingroup$ ...and the flash file that you can play with if you want... $\endgroup$ – Chowzen May 31 '18 at 19:59
  • $\begingroup$ @Chowzen way cool! $\endgroup$ – Bass May 31 '18 at 20:08
2
$\begingroup$

First i'll start off by naming the boxes
Box numbers

The red box will be called R

I do the following operations

-> means tumble/roll right, whichever available
<- means tumble/roll left, whichever available
U means means tumble/roll up, whichever available
D means tumble/roll down, whichever available

It starts off with:-
4U 5U
6<- 6<-
9<- 9<-
11U 12U 15U 16<-
18U 19U 19U
R-> R->

After this, the board will look like this: (The circle is the red box) After first set of moves

The next set of moves is: RU
20<- 20<- 20<-
18D RD
19D 19<-
RU RU
7U R->
2D 2D 2D
13<-
R<-

After these, the board will look like: The second set of steps

Then the solution is fairly simple to arrive at: 8<- 3D 3D 3D 8->
7D 7D
8<- 8U 8->
8D 8D
R->
RU RU
R-> And exit

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.