solar-system
solar-system copied to clipboard
Better planet generation
This is quite an easy one :)
Currently, the planet generation is a bit terrible. All the properties are generated completely regardless of the other ones, and the name generation, while sometimes working well, is sometimes bad and/or unpronounceable.
Some fixes I've thought of are:
- Improve name generation using Markov chains - for each letter, store a probability of choosing each other letter as the next one.
- Make some properties depend on other ones, e.g. technology might depend on population.
I would like to implement food growth based off the biodiversity factor that I just sent a PR for.
I'm experimenting with Markov Chains right now because I had never heard of them. If I get something working, I'll let you know.
Cool :) A vague idea I had was basically to have a markov chain which, for each letter, contains the probability of choosing one of the other letters. I think you could quite easily generate one, given lots of nice-sounding planet names.