Personal tools

Haskell Quiz/SimFrost

From HaskellWiki

< Haskell Quiz
Revision as of 10:25, 18 March 2007 by Dolio (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This problem involved simulating the accumulation of frost on a flat surface. The plane starts with a single point of frost, and a random amount of water vapor. At each iteration, the water vapor moves in a random fashion, but if it comes within a certain proximity of frost, it becomes frost itself.

1 The problem

2 Solutions