The science of hydrography is about charting bodies of water by measuring their depths, tides and currents and describing the topography of river, lake or sea beds.
In this challenge you will work on a simulation problem with a hydrographic theme. You will be asked to progressively fill an underground cave with water. The cave sports a particular topography of rock formations that will affect the way in which the water flows into it and fills it up. After a certain amount of water has flowed in, you will need to determine the water depth at various points.
http://puzzlenode.com/puzzles/19
################################
~~~~~~~~~~~~~~~ #
#~~~~~~~~~####~~~~~~~~~~~~~~~~ #
###~~~~~~~####~~~~~~~~~~~~~~~~##
###~~~~~~~####~~~~~~~~~~~~~~####
#######~~~#######~~~~~~~~~######
#######~~~###########~~~~~######
################################
last pos = [2,0]
if last_position's bottom cell is free fill water
else if last_position's right cell is free fill water
else if last_postion top cell is free
then
goto to top cell row, find the left most free cell
################################
~~~~~~~~~~~~~~~ #
#~~~~~~~~~####~ #
###~~~~~~~#### ##
###~~~~~~~#### ####
#######~~~####### ######
#######~~~########### ######
################################