Posted by Toby A Inkster on 02/15/07 17:19
Toby A Inkster wrote:
> 1. You're on a particular grid square.
> 2. Are you at the sea yet? If so, stop.
> 3. Look at the 8 adjacent squares. Which has the lowest altitude?
> 4. The river should flow to that square. Go to step 1.
Oops! You'll sometimes run into a dead end here. I'll leave you with the
challenge of figuring out how to detect and fix this. Clue: lakes.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|