Posted: Tue May 26, 2020 9:05 pm
Episode 5 - cave 3 analysis
Once again the link:
https://www.youtube.com/watch?v=l1k1UkszZTw&t=4s
Cave 3 starts at 0:34.
What do we see?
At the left side, Rocky snaps down so the left boulder falls and frees the diamond, at the right side Rockford moves down and up again so that the right boulder falls and frees the diamond. Why does it work like this and only like this?
How does it work?
To understand this, we need a bit of theory again. This time, a boulder falls sideways from another boulder. I didn't discuss this piece of boulder physics yet, so here's a full overview of how a boulder behaves.
If the BD engine scans a boulder, it checks first what is directly below the boulder. There are three possibilities:
1. If below the boulder is empty space, then of course the boulder falls down by one unit and thereby converts into a "falling boulder". See also episode 3.
2. If below the scanned boulder is another boulder or a diamond or a brick wall, the engine checks next whether the scanned boulder can fall sideways.
2a. If there's empty space to the left and to the bottom-left side of the boulder, like this...
DDDDD
DSBDD
DSXDD
DDDDD
D=Dirt
B=Boulder
X=Boulder, diamond or brick wall
...then the boulder moves left by one unit and thereby converts into a "falling boulder".
2b. If this is not the case, the engine checks whether the boulder can fall to the right. That's just analogue.
3. If any other BD element is below the boulder, nothing happens.
So let's go back to cave 3. The interesting situation is basically the following one:
DDDDD
DDRDD
DBDBD
DBSBD
DDDDD
D=Dirt
R=Rockford
B=Boulder
S=empty space
Rockford wants a boulder to fall sideways. There are two possibilities to achieve this.
Possibility 1: Snap downwards
Let's do a frame-by-frame analysis again:
Frame 0 Picture see above
Let's see what the cave scanner does:
1. According to rule #1, Rockford is scanned first. He snaps down.
2. Next, the top-left boulder. Can it fall to the right? Yes! Rockford has just cleared the dirt to the boulder's right side, and there's also empty space to the bottom-right side of the boulder. So it moves right and becomes a "falling boulder".
3. Next, the top-right boulder. It can not fall to the left because the previous boulder just blocked the way. Nothing happens.
4./5. The two bottom boulders cannot do anything, either.
Frame 1
DDDDD
DDRDD
DSBBD
DBSBD
DDDDD
We can already stop here as it's clear what will happen - the boulder will fall down and that's it. So with this strategy, Rockford has made the top-left boulder fall down.
Possibility 2: Move down and up again
Frame 0
DDDDD
DDRDD
DBDBD
DBSBD
DDDDD
1. Rockford is scanned first. This time, we move down.
2. None of the boulders can fall yet, as Rockford blocks the way.
Frame 1
DDDDD
DDSDD
DBRBD
DBSBD
DDDDD
1. Now, the cave scanning order rule makes the top-left boulder be scanned first. Rockford still blocks it, so nothing happens.
2. Rockford's turn. We move up.
3. The top-right boulder's turn. What happens? As Rockford has just moved away, the boulder can now fall to the left!
4./5. The bottom boulders can't do anything again.
Frame 2
DDDDD
DDRDD
DBBSD
DBSBD
DDDDD
Once again, the boulder will fall and that's it. So this time, it was the top-right boulder that was falling! Let's summarize:
- If Rockford snaps down in frame 0, then the top-left boulder falls.
- If Rockford moves down and up again, then the right boulder falls.
And this explains everything about how this mini cave works!
I will not fail to mention that Arno has made a fantastic puzzle cave based on this idea:
https://www.youtube.com/watch?v=0Istmyw5nAs&t=1s
It may be hard to understand by just watching the solution, but the main idea is that you need the diamonds, boulders, light boulders and heavy boulders exactly where they are in the end. I remember that I solved this cave with pencil and paper after half an hour or so ;D
Once again the link:
https://www.youtube.com/watch?v=l1k1UkszZTw&t=4s
Cave 3 starts at 0:34.
What do we see?
At the left side, Rocky snaps down so the left boulder falls and frees the diamond, at the right side Rockford moves down and up again so that the right boulder falls and frees the diamond. Why does it work like this and only like this?
How does it work?
To understand this, we need a bit of theory again. This time, a boulder falls sideways from another boulder. I didn't discuss this piece of boulder physics yet, so here's a full overview of how a boulder behaves.
If the BD engine scans a boulder, it checks first what is directly below the boulder. There are three possibilities:
1. If below the boulder is empty space, then of course the boulder falls down by one unit and thereby converts into a "falling boulder". See also episode 3.
2. If below the scanned boulder is another boulder or a diamond or a brick wall, the engine checks next whether the scanned boulder can fall sideways.
2a. If there's empty space to the left and to the bottom-left side of the boulder, like this...
DDDDD
DSBDD
DSXDD
DDDDD
D=Dirt
B=Boulder
X=Boulder, diamond or brick wall
...then the boulder moves left by one unit and thereby converts into a "falling boulder".
2b. If this is not the case, the engine checks whether the boulder can fall to the right. That's just analogue.
3. If any other BD element is below the boulder, nothing happens.
So let's go back to cave 3. The interesting situation is basically the following one:
DDDDD
DDRDD
DBDBD
DBSBD
DDDDD
D=Dirt
R=Rockford
B=Boulder
S=empty space
Rockford wants a boulder to fall sideways. There are two possibilities to achieve this.
Possibility 1: Snap downwards
Let's do a frame-by-frame analysis again:
Frame 0 Picture see above
Let's see what the cave scanner does:
1. According to rule #1, Rockford is scanned first. He snaps down.
2. Next, the top-left boulder. Can it fall to the right? Yes! Rockford has just cleared the dirt to the boulder's right side, and there's also empty space to the bottom-right side of the boulder. So it moves right and becomes a "falling boulder".
3. Next, the top-right boulder. It can not fall to the left because the previous boulder just blocked the way. Nothing happens.
4./5. The two bottom boulders cannot do anything, either.
Frame 1
DDDDD
DDRDD
DSBBD
DBSBD
DDDDD
We can already stop here as it's clear what will happen - the boulder will fall down and that's it. So with this strategy, Rockford has made the top-left boulder fall down.
Possibility 2: Move down and up again
Frame 0
DDDDD
DDRDD
DBDBD
DBSBD
DDDDD
1. Rockford is scanned first. This time, we move down.
2. None of the boulders can fall yet, as Rockford blocks the way.
Frame 1
DDDDD
DDSDD
DBRBD
DBSBD
DDDDD
1. Now, the cave scanning order rule makes the top-left boulder be scanned first. Rockford still blocks it, so nothing happens.
2. Rockford's turn. We move up.
3. The top-right boulder's turn. What happens? As Rockford has just moved away, the boulder can now fall to the left!
4./5. The bottom boulders can't do anything again.
Frame 2
DDDDD
DDRDD
DBBSD
DBSBD
DDDDD
Once again, the boulder will fall and that's it. So this time, it was the top-right boulder that was falling! Let's summarize:
- If Rockford snaps down in frame 0, then the top-left boulder falls.
- If Rockford moves down and up again, then the right boulder falls.
And this explains everything about how this mini cave works!
I will not fail to mention that Arno has made a fantastic puzzle cave based on this idea:
https://www.youtube.com/watch?v=0Istmyw5nAs&t=1s
It may be hard to understand by just watching the solution, but the main idea is that you need the diamonds, boulders, light boulders and heavy boulders exactly where they are in the end. I remember that I solved this cave with pencil and paper after half an hour or so ;D