Browsing index pages (3 articles)
↧
Text-based terrain generator (Part 2)
I've updated my text-based terrain generator a lot. Even though I haven't worked on it all that much. I really just want to know, like usual, is there anything I can improve? How can I shorten the...
View ArticleAnswer by janos for Text-based terrain generator (Part 2)
You have two errors here:def generate(world_size): system('cls' if name = 'nt' else 'clear') for _ in range(world_size): print(''.join(choice(tiles) for _ in range(world_size)))An unexpected indent and...
View ArticleAnswer by Julien Palard for Text-based terrain generator (Part 2)
Your terran is randomly generated, you may use a "transition" map like this:transitions = {Tiles.land: [Tiles.sand] + [Tiles.tree] * 2 + [Tiles.land] * 5, Tiles.sand: [Tiles.water, Tiles.sand],...
View Article
Browsing index pages (3 articles)