8
4
Generate an ASCII wilderness map.
Example output:
................^^^^
..................^^
...^^^^........o....
.....^^^^...........
....................
........o....TT.....
..TTTT..............
TTTT.TTTT....~~~~~~.
..TT..........~~~~~~
....................
Anti-example (don't do this):
....................
...........T........
...^..........oo....
......^.............
....................
..............TT....
T.T.T.T.T........T..
.................T..
T.T.T.T.T..........T
..............TT...T
Rules:
- Must be at least 20x10 characters in size
- Must be different each run, i.e. random
- Must contain continuous and varying shape areas of trees 'T', hills '^' and water '~', most of which should consist of more than 5 cells
- The default, ground character is '.'
- Must contain at least 2 villages 'o' that are usually not next to each other
- Must not contain obvious patterns, such as rectangles or evenly spaced areas - "natural look" is the key
- You don't need to explicitly check that the rules are followed (e.g. no need for anti-rectangle logic), but the great majority of the runs (say, 80%) must produce conforming results
- With your submission, include an example output
Scoring:
Winner has lowest score from formula: code character count
- votes
You mention "conforming results" and "the rules [being] followed", but don't explain what that means, exactly. What are those rules to conform to, and what, exactly, is wrong with your second example? – KSFT – 2015-01-31T20:03:59.217