Code Golf: Running Water
The challenge The shortest code by character count to identify and mark water depressions in the ASCII representation of a land from input. Input will be an ASCII representation of a landscape, having hills, valleys and flat lands. The program should simulate what the landscape would look like if if was flooded - filling all valleys with water (character x ). The landscape will always start and stop with the character _ and will be at least 2 characters long, making the shortest input __ . A hill is defined as a raise, and should not be filled with water: __ _/ \_ A valley is defined as a