Given a 1-deep n by m rectangular pit, what is the smallest number of bucket loads that can be used to completely fill it with water source blocks? Given the way water propagates, what's the most efficient sequence to fill the rectangle with? Is this sequence different if trying to fill a square?
|
|
||||
|
|
|
A water block becomes a source block when there's at least 2 other source blocks next to it (not counting diagonally). You start with the very edge and place two water blocks like so. This will give you a 2×2 square of water sources.
Now, simply scoop up any source block (it will refill), and dump it diagonally from the outermost block.
Repeat until you hit an edge. Which source block you take doesn't matter, they are all infinite (as in, will refill instantly) at this point.
As you can see, to fill an n-long square, you need n bucket loads (actually, only 2, since after that, you can refill from the pool). To fill the entire rectangle, dump a bucket every other row on one side. The very edge block always has to be filled.
So to fill an n×m block rectangle, you need Here's a video of a guy using this technique on a perfect square:
(Note that he always refills from the still source blocks for some reason, but as noted above, any source block will do.) |
|||||||||||||||||||
|
|
This might be slightly easier: You can also fill two adjacent sides with source blocks:
...without having to enter the pool and tread water. You can do it by traversing just two sides. It can be as efficient as @lunboks's excellent answer:
...and has the additional benefit that if you place the corner block (1) last, you can watch the whole thing turn in one smooth motion! :) |
|||
|
|