From 157a0b8c60152b8c15acaa34e2433844337ffe5b Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sun, 14 Apr 2024 10:16:39 -0700 Subject: [PATCH] Notes, Roman numerals. --- README.md | 31 +++++++++++++++++++++++++++++++ stars.py | 16 +++++----------- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 944be24..023f382 100644 --- a/README.md +++ b/README.md @@ -172,4 +172,35 @@ seems dramatic. The first and second options are easy to implement, the tooltip needs positioning logic. Let's exercise the notebook... +Sat Apr 13 22:58:12 PDT 2024 + +We assume that each stellar system has all the energy and protons they +need so they can transmute elements. The products of a stellar system +are "spices", biomolecules, which require planets to have life, and art +which requires sentient life. + +So a planet has, let's say, a bio-capacity, the maximum life it can +sustain (for whatever factors, temp etc.) and the basic mechanic is to +seed lifeless planets with life (using fast cheap robot probes/drones) +and then collect and trade spices. + +Because acceleration is so expensive, we have "gates" that throw and +catch ships for sentient beings to travel. That way the ships don't have +to carry mass to eject for delta-vee or fuel to eject it, and I imagine +that dust and such is swept out of the regular routes. + +But it's expensive to build a gate and you have to bootstrap. + +So you start with a home system, two seeder drones, and one +ship-of-the-line for defense and you know, to have a ship. + +You send out the drones to explore and bootstrap your local economy, fly +your other ship around to do...? Fun side quests? Allocate build power +to: +- more build power +- seed drones +- ships +- ? + + diff --git a/stars.py b/stars.py index 89474db..b620a28 100644 --- a/stars.py +++ b/stars.py @@ -121,19 +121,13 @@ def how_many_planets(): return n def generate_planets_for_star(c, star_id): - n = how_many_planets() - if n < 1: - return - for ordo in range(1, n + 1): + for ordo in range(1, how_many_planets() + 1): c.execute('insert into planets(ordo, star) values (?, ?)', (ordo, star_id)) ROMAN_NUMBERS = [ - None, - 'I', 'II', 'III', 'IV', 'V', - 'VI', 'VII', 'VIII', 'IX', 'X', - 'XI', 'XII', 'XIII', 'XIV', 'XV', - 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', - 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', - 'XXVI', 'XXVII', 'XXVIII', 'XXIX', + None, # no zero, but this aligns entries and their indicies + 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', + 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', + 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', 'XXVII', 'XXVIII', 'XXIX', ]