CellularAutomataMap - manno-xx/haxe-openfl-examples GitHub Wiki
The Cellular Automata Map example generates a dungeon-like map. Clicking on the screen executes one step of the Cellular Automata and thus creates a map. Depending on the initial distribution of cells it takes about 12 steps for the CA to reach a static form.
More about Cellular Automata: http://www.conwaylife.com/wiki/Cellular_automaton