The Map Specification
The map is 80 characters wide by 50 tall and wraps East-west. If you were to print it out and fasten the shorter edges together, you'd have a cylinder that has a 80 circumference by 50 high.The map should consist of between 3 and 5 islands but no island should come within 2 locations of the north or south edges. It's ok for them to overlap East West etc. Each island should be no bigger than 400 locations or smaller than 50 locations so there will be more sea than land. Islands can be any shape. I'll give more marks if they are not circular, rectangular or square. An island is considered any land location that is contiguous to another land location, (ie next to it horizontally or vertically).
There should be no lakes smaller than 10 locations in size. If there are fill them in or you lose points. Likewise no islands less than 50.
Terrain
Use a + for a land location and a full stop . for sea. Please make 20% of the land locations as clumps of forest (use a * ) and 15% are mountains (Use A ^ ).Entries
Please create a text file with 10 different maps, each 80 x 50. After each map output one line per island like this. Island 1: 345 locations. Island 2: .... That's it!Results
There were two entries from Vikas Ranjane in C and Kenneth D. Weinert in C#.I think Kenneth's maps are more interesting so he is the winner but judge for yourself. Here are the maps produced:
Thanks to both entrants!More Programming Challenges
- Link to Rock, Scissors and Paper Bot Ongoing Programming Challenge - Runs weekly.
- Link to Programming Challenge 2 - Count the Islands. (Finished)
- Link to Programming Challenge 3 - Manage Elevators. (Finished)
- Link to Programming Challenge 4 - Guess the Mastermind Code - (Finished)
- Link to Programming Challenge 5 - Squeeze words into a crossword grid - (Finished)
- Link to Programming Challenge 6 - Guess the Mastermind Code - (Finished)
- Link to Programming Challenge 7 - Validate Chess Positions - (Finished)
- Link to Programming Challenge 8 - Score Poker Hands - (Finished)
- Link to Programming Challenge 9 - Manage a Data structure - (Finished)
- Link to Programming Challenge 10 - Hide Text (Finished)
- Link to Programming Challenge 11 - Match Sets of Cards (Finished)
- Link to Programming Challenge 12 - Calculate Shortest Path - Completed)
- Link to Programming Challenge 13 - Play Battleships (Finished)
- Link to Programming Challenge 14 - Multiply Large Numbers(Completed)
- Link to Programming Challenge 15 - Generate a Dungeon (Completed)
- Link to Programming Challenge 16 - Solve 1,000 Sliding Puzzles ( Completed)
- Link to Programming Challenge 17 - Implement Life (Completed)

