solar-system icon indicating copy to clipboard operation
solar-system copied to clipboard

Better planet generation

Open zac-garby opened this issue 7 years ago • 3 comments

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.

zac-garby avatar Oct 13 '17 22:10 zac-garby

I would like to implement food growth based off the biodiversity factor that I just sent a PR for.

thecouchcoder avatar Oct 15 '17 03:10 thecouchcoder

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.

thecouchcoder avatar Oct 16 '17 19:10 thecouchcoder

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.

zac-garby avatar Oct 16 '17 19:10 zac-garby