GitXplorerGitXplorer
a

hitting-rock-bottom

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
95d4e2fe656f118f61ada862a781f7873af94871

Working Solutiongit status

aakhilstanis committed 13 years ago
Unverified
17c54f4d413352892eebb9065f07b6b306a067aa

Added water_depth method

aakhilstanis committed 13 years ago
Unverified
ee445986316fb9a6c685d2acc1890cf8578a10d6

Added one more test case for fill_water

aakhilstanis committed 13 years ago
Unverified
47ad1bd0e46386326e5192fe3d8b1fb3b356ca34

Implemneted filling of water

aakhilstanis committed 13 years ago
Unverified
131f9e2822c2a2e4b08bfad9b2ff59a512a53802

Initial Commit

aakhilstanis committed 13 years ago

README

The README file for this repository.

Description

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



  ################################
  ~~~~~~~~~~~~~~~                #
  #~~~~~~~~~####~                #
  ###~~~~~~~####                ##
  ###~~~~~~~####              ####
  #######~~~#######         ######
  #######~~~###########     ######
  ################################