Original Post
Hiya, I'm hoping someone can answer a question I have. Imagine a cave with a 3x3 grid filled with water. Below it, a solid piece of rock, below that, a vertical chasm of 9 units high. Knock out the seperating rock, water goes down and fills up the chasm. No probs there. But what if the chasm is 5 units? Where do the other 4 units of water go? If I had 3 chasms, one 5 units high, and 2 at 2 units high, you could say all 3 chasms would get full with water, if they were on the same level could you not? Is there any type of mathematical formula or perhaps some pseudo-code that I can implement this please? I've got some idea in my head on how to do it, but I don't know if I'm looking at it too closely. Appreciate any feedback, thanks.