So now, I'm at a new place, but it's all open source, so to keep with the developers I have there now, I've decided to flip over to Python so I can teach myself some of that. I've worked out today a Python script that will generate systems and planets (because I like that sort of detail). Is there anyone else working on something similar? Now that the game is out, and there is a forum like the galaxies forum, I feel a little better putting this code out on github. Any interest or other work I could look at?
Output of the python script, such as it is right now, looks like this:
Code: Select all
M:\python>python test04.py
How many star systems?" 3
Gallus is a black hole system located at (1514,571,92)
Orion is a single star system located at (818,2313,129)
Orion prime, a Class M Red dwarf, it is planetless.
Capella is a binary star system located at (1542,236,91)
Capella beta, a Class D White subdwarf with 3 planets.
planetsize: 1, BIO: 0, RAW: 2
planetsize: 4, BIO: 0, RAW: 1
planetsize: 2, BIO: 0, RAW: 1
Capella prime, a Class M Red dwarf with 2 planets.
planetsize: 3, BIO: 4, RAW: 6
planetsize: 3, BIO: 0, RAW: 0
M:\python>