PulseCore

Edition for PulseCore 8.5: the text of 16 November 2026, kept as it was. Play this version. The live text describes PulseCore 8.7.

Chapter 5

Stars

Binary Pulse Theory gives every universe its own stars. BPT Part 2.10 (The Strong Force and the Mass of Matter) ties the mass of matter to the level: a proton is the Planck mass over 2^(L/3)/14.3, so a level decides whether matter holds together, whether stars can stand, how many protons a star holds and how many stars the universe forms. BPT Part 2.9 (Gas, Stars, and the Stellar Road to the Null Well) and its formal companion, BPT Part 6.10 (Stellar Formalism: The Gas, the Stellar Mass Unit, and the Stellar Null Well), take the road from there: the gas of the Physical Nova cools and gathers, turns into stars by the Gas Depletion Law, and each star's birth mass, drawn from the Initial Mass Function, decides its type, color, brightness, life, death and remnant; only the heaviest leave a Stellar Null Well. BPT Part 3.12 (Ripples, Spin, and the Whirling Disks) adds where the metals come from and the winds that carry them out of small galaxies, and BPT Part 3.14 (Galaxies: the Wells and the Stars Around Them) adds the feedback that keeps galaxies blue and the Proto Wells that a site's first dying star fills.

The game makes this happen in stars.js and in the parts of app.js that drive it. At the Physical Nova the matter law of the level (matterLaw()) decides which of three universes this is: one of light and wells, one of matter without stars, or one with stars. In a starry universe the game sizes its Sun so the stars it draws stand for the law's count, then, every quarter flip, forms stars in its dense clouds, draws their masses, ages them, ends them by their mass, returns their gas and metals, blows winds, pushes and heats the gas around supernovae and feeding wells, and turns the heaviest dead cores into Stellar Null Wells.

What the player watches: before the Physical Nova the HUD's Stars line reads "none before the Physical Nova". After it, the faint haze of gas on the torus gathers along the filaments and lights up with points of starlight colored by type: a few large blue-white giants, swollen orange giants, many small dim red dwarfs, white dwarfs and neutron stars as small pale points, one neutron star in five blinking as a pulsar. Supernovae flash as spreading white-to-violet shells, planetary nebulae glow teal, and banners mark the first stars, the first supernova, the first white dwarf, the first neutron star and the first Stellar Null Wells. The Stars line counts them all, in real numbers for the level, and the end card and the run record keep them.

The gas the stars form from, its cooling and heat, and the mesh that moves it are in Chapter 4; the galaxies the stars gather into are in Chapter 6. Where the code departs from BPT, from the physics or from its own comments, each Part says so in its own subsection.

Part 5.1: The Stars in the Matter Step

Stars live on the bodies of matter (Chapter 4). A body is a clump: its mass m (cells) is its gas gas plus the stars it holds; pop is its list of star lots, each { m, n, mb, pb, born, life, cls, alive, metalFree, Z }; pend is gas set aside toward its next stars, in Suns; zm is its metals in cells (stars.js:134–139).

The order of the theory is the order of the code. BPT Part 2.9's road runs gas, collapse, star, life, death, remnant, and BPT Part 3.14 closes the loop with feedback: stars heat and disperse the gas that would make more of them. Each matter sub-step (a quarter flip), after Matter.step(), stepMatterPost() app.js:658 walks that road once:

  1. If the level holds no stable matter, decay the bodies (Part 5.2).
  2. Set matter.flipNow, then call stepStars(matter, now, tauSun, dt, physLife) stars.js:140, unless the level holds no stable matter or no stars; now is Tempos since the Data Nova, (pulseCounter + subDone − birthFrame)/2 (app.js:665).
  3. applyFeedback(sev) app.js:758: supernovae and feeding wells push the gas (Part 5.12).
  4. Flashes for supernovae and planetary nebulae (app.js:667–668); first-event banners (starToasts() app.js:731).
  5. Stellar Null Wells registered from the stars that collapsed (Part 5.13).

stepStars() itself, for every body: mix metals through its cloud; form stars if the cloud is dense and cool enough (Parts 5.7 and 5.8); mark giants; end the stars whose lives are over (Part 5.9), returning their ejecta and metals (Part 5.10) and blowing winds (Part 5.11); then add the wind bodies and recount the tallies. Its events go back as sev: stars born, first stars, supernovae, wells, white dwarfs, neutron stars, pair-instability supernovae and nebulae.

After each step scene.setMatter() (app.js:674) redraws the bodies: each body's points become its stars, colored and sized by type, and its gas, a dim haze in the data's color (scene3d.js:697). So every Part below ends on the same screen: the torus's surface, its gas haze and its starlight.

This overview Part computes nothing of its own; the numbers are in the Parts that follow.

The method, in plain steps:

each matter sub-step, if the universe can make stars:
    clouds that are dense and hold a Sun of gas turn gas into stars (Part 5.7), in lots (Part 5.8)
    every lot ages; at the end of its life it dies by its mass (Part 5.9):
        its ejecta and new metals go back to the gas (Part 5.10), supernovae blow winds (Part 5.11)
        and push and heat the gas round them (Part 5.12); the heaviest leave Stellar Null Wells (Part 5.13)
    the tallies and readouts are updated (Part 5.14)

The code:

// public/game-v8.4/stars.js:140
export function stepStars(matter, now, tauSun, dt = 1, life = 0) {
    const S = matter.stars || (matter.stars = { sun: null, formed: 0, metals: 0, gasMass: 0, sn: 0, pisn: 0, wd: 0, ns: 0, bh: 0, firstAt: null, byType: {} });
    const ev = { born: 0, firstStars: null, sn: [], wells: [], wd: 0, ns: 0, pisn: 0, pn: [] };
    if (!matter.bodies.length || !(matter.G > 0)) return ev;
    const G = matter.G * (matter.gk || 1), B2 = matter.B * matter.B, CL = matter.cloud || 8, CC = Math.ceil(matter.cols / CL);   /* clouds are 8 × 8 cells of the level's full field whatever the gravity mesh; on a smaller field (a phone's scale model) the same share of the universe (matter.cloud, app.js cloudCells) */
    if (S.sun === null) S.sun = matter.sunCells || SUN_CELLS;   /* 8.2: the Sun of the universe's level (app.js) */
    const blockOf = (b) => Math.floor(matter.wrapR(b.r) / matter.B) * matter.GC + Math.floor(matter.wrapC(b.c) / matter.B);
    let totalGas = 0;

Part 5.2: The Matter of a Level

The BPT law

BPT Part 2.10 (The Strong Force and the Mass of Matter) reads the hierarchy between the Pulse and matter as the level itself. Its Matter Scale of a Level is Λ⊗ = E_P · 2^(−L/3): "the strong scale of a universe is its Planck energy over the cube root of its life in Pulses". Its Proton Mass is m_p·c² = κ⊗·Λ⊗, "a proton is a fixed multiple of the strong scale", κ⊗ ≈ 14.3 against the level's E_P·2^(−202/3). Together they give m_P/m_p = 2^(L/3)/κ⊗, κ⊗ = 14.3: at our level 202, 1.30 × 10¹⁹.

From that one ratio the Part derives the stars of every level. How Big a Star Can Be: a star holds about (m_P/m_p)³ = 2^L/κ³ protons, "at level 12 it is about one: a star would be a single proton. Below about level 12 there is not even one". Protons in a Star: N_p★ = 0.227·(m_P/m_p)³, where 0.227 = 0.42/1.85 is the mean birth mass of the Initial Mass Function over the Stellar Mass Unit. Stars of a Universe: N★ = 925·(m_P/m_p), with 925 = 0.06 × 3,500 / 0.227: Eddington's 3,500·(m_P/m_p)⁴ protons, 6 % of them in stars; "about 65 stars to a well at every level". Star Existence Condition: m_P/m_p > α^(−1/2), "stars can stand only where gravity between two protons is weaker than their electric force"; with κ = 14.3 the condition is a level, 2^(L/3) > 14.3·√137 ≈ 167, L > 3·log₂ 167 ≈ 22.2. "Below it gravity outweighs the electric force between protons and the universe holds matter but no stars." The book states its one assumption plainly: α is the same at every level.

The established physics

  • The fine-structure constant α ≈ 1/137.036.
  • Stars require α_G = (m_p/m_P)² < α (Carr & Rees 1979; Barrow & Tipler 1986; cited in BPT Part 2.10).
  • 6 % of ordinary matter in stars (Fukugita & Peebles 2004, cited at app.js:4292).
  • The strong scale and lattice QCD for κ (Dürr et al. 2008, cited in BPT Part 2.10).

The game's math

matterLaw(L, deficitBits = 0) app.js:4298:

Ld      = max(0, L + deficitBits/2)
mPmp    = 2^(Ld/3) / 14.3                    m_P / m_p
stable  = mPmp > 1
perStar = 0.227 · mPmp³                      protons in a typical star
stars   = 925 · mPmp                         stars the universe forms in its life
wells   = 2^(L/3)

The task notes said the stellar mass per Pulsecore is m_P/m_p = 2^(L/3)/14.3: confirmed, with L read as the universe's depth (scaleModel() app.js:4282 and app.js:5299 pass uni.depth when it is finite, else uni.L). deficitBits is never passed in 8.4, so Ld = L; the Pulsecore's measured shortfall pulsecoreInfo() is kept on the record only (app.js:5299).

STAR_LINE = √137.036 app.js:4297. In sendOutMatter() app.js:1252:

matter.unstable = !stable                    no stable matter
matter.noStars  = stable and mPmp < STAR_LINE
  • No stable matter (L below about 12): each sub-step every body vanishes with probability 0.35·dt, flashing out as radiation (app.js:663); stepStars() is skipped; collapsing clumps are not registered as wells (app.js:691).
  • Matter but no stars (about 12 to 22.2): stepStars() is skipped.
  • Stars (above 22.2): everything in this chapter runs.

Worked values:

Level m_P/m_p stable stars by law
12 2⁴/14.3 = 1.12 yes no stars (below 11.7)
22.2 11.7 yes the line
23 2^7.67/14.3 = 14.2 yes 925 × 14.2 ≈ 13,100
28 2^9.33/14.3 = 45.1 yes ≈ 41,700
202 1.30 × 10¹⁹ yes ≈ 1.20 × 10²²

At every level the law gives 925/14.3 ≈ 65 stars a well, as BPT Part 2.10 says.

The method, in plain steps:

m_P / m_p ← 2^(L/3) / 14.3           a proton against a Planck mass, at this level
    m_P / m_p ≤ 1          → no stable matter: it flashes out as radiation
    below √137 ≈ 11.7      → matter, but no stars
    otherwise              → stars: 925 · m_P / m_p of them in the life, 0.227 · (m_P / m_p)³ protons in each

The code:

// public/game-v8.4/app.js:4297
const STAR_LINE = Math.sqrt(137.036);

// public/game-v8.4/app.js:4298 matterLaw()
function matterLaw(L, deficitBits = 0) {
    const Ld = Math.max(0, L + deficitBits / 2), mPmp = Math.pow(2, Ld / 3) / 14.3;
    return { Ld, mPmp, stable: mPmp > 1, perStar: 0.227 * mPmp * mPmp * mPmp, stars: 925 * mPmp, wells: Math.pow(2, L / 3), deficitBits };
}

// public/game-v8.4/app.js:1251
{ const law = uni.matterLaw || matterLaw(uni.L), STAR_DRAW = 40000; let Q = 0; for (const b of matter.bodies) Q += b.m || 0;
  matter.law = law; matter.unstable = !law.stable; matter.noStars = law.stable && law.mPmp < STAR_LINE;
  const D = Math.max(1, Math.min(law.stars, STAR_DRAW)); matter.starMult = law.stars / D; matter.sunCells = Math.max(1e-3, 0.77 * Q / (D * 0.39));

In the game

The player chooses the level before Start with the Level L control. Its tooltip (index.php:143) states the law: "stars stand only where gravity between two protons is weaker than their electric force, from about level 23 (the Star Existence Condition, Part 2.10). Shallower universes hold matter and wells but no stars; deeper ones have more and larger stars." The default level is 25, "a couple of levels past where stars begin".

The law is read at the Physical Nova, the third nova (PHYSICAL_LAYER = 3), when burstPulsecore() app.js:1259 sends the Pulsecore's data out as matter. Until then the HUD's Stars line (index.php:86) reads "none before the Physical Nova". From then it shows one of three universes (app.js:2151):

  • Below level 12: "none: no stable matter at this level, a universe of light and wells". The matter the nova sends out does not stay: each body has a chance of 0.35 a flip to wink out as a warm-white flash on the torus (the "merge" flash, scene3d.js:1061), so within a few flips the field is light and wells.
  • From 12 to 22.2: "none: gravity outweighs the electric force between protons at this level". The matter gathers into filaments and clumps as in Chapter 4, but stays gas haze; no point of starlight appears.
  • Above 22.2: the stars of this chapter, starting with "none yet · the gas is still too warm to collapse" (stars.js:255) until the first stars form.

The run record keeps the law (law: { info_depth, mp_ratio, stable, protons_per_star, stars, wells }) and matter_state as 'unstable', 'no-stars' or 'stars' (app.js:2213–2214); the universe's language block lists the stars routine as "skipped: matter unstable at this level" or "skipped: m_P/m_p … ≤ α^−½ = 11.7" (app.js:2240).

The scale model

The law is exact at the true level, computed from the depth, not from the drawn field. What it sets is a target: how many stars the drawn ones must stand for (Part 5.3). The thresholds are exact.

Where the game and the theory differ

  • BPT Part 2.10 says that below about level 12 a star would hold less than one proton, so no star can form; it does not say the matter itself is unstable. The game reads the same line as no stable matter at all: every body leaves at 0.35 per flip as radiation, and collapsing clumps there are not counted as wells (app.js:691). The rate 0.35 is the game's, not the book's.

Fixed numbers

Number Where What it is Kind
14.3 matterLaw() app.js:4299 κ⊗, the proton over the strong scale BPT (Part 2.10, Matter Scale of a Level)
3 matterLaw() app.js:4299–4300 The complexity exponent, 2^(L/3) BPT (Part 2.10, Part 2.3)
1 matterLaw() app.js:4300 Stable when m_P/m_p > 1 BPT (Part 2.10)
0.227 matterLaw() app.js:4300 Mean star over the Stellar Mass Unit BPT (Part 2.10, Protons in a Star)
925 matterLaw() app.js:4300 Stars per unit of m_P/m_p BPT (Part 2.10, Stars of a Universe)
2 (÷) matterLaw() app.js:4299 Half the deficit bits added to the level (never passed in 8.4) METHOD (unused)
137.036 STAR_LINE app.js:4297 1/α PHYSICS (CODATA) and BPT (Part 2.10, Star Existence Condition)
0.35 stepMatterPost() app.js:663 Chance a quantum flashes out per flip, no stable matter METHOD (a few steps' life, not derived)
64 app.js:663 Flashes reported per step CAP (drawing)
2048 app.js:663 Size of each flash DISPLAY

Part 5.3: The Game's Sun and What Each Drawn Star Stands For

The BPT law

BPT Part 2.9 explains why a star weighs what it does: every bound on a star is "a multiple of one mass built from the Planck mass and the mass of the hydrogen atom". That mass is the Stellar Mass Unit, M⋆ = m_P³/m_H², "the mass every star is sized by", about 3.7 × 10³⁰ kg ≈ 1.85 M☉ in our universe; stars run from about 0.04 M⋆ (hydrogen burning) to about 50 M⋆. Because each universe takes its Planck values from the well it was born in, "each universe has its own Stellar Mass Unit. The stars of a universe are sized by its lineage."

BPT Part 6.10 makes the Sun a fixed share of it: the Solar Mass of a Universe, M☉(u) ≈ 0.54·M⋆(u), "each universe's own Sun, a fixed share of its Stellar Mass Unit"; a universe with a different m_P has a Sun of a different mass, "and its whole stellar sequence … moves with it, in the same proportions". Its Game's Reading, Formally, applies this to the game: "At the game's scale the Pulse and the matter quantum are one cell each, m_P = m_H, so M⋆ = 1 cell and the game's Sun is M☉(game) = 0.54 cells by the Solar Mass of a Universe." BPT Part 2.10's Stars of a Universe, N★ = 925·(m_P/m_p) (Part 5.2), is the count the drawn stars must stand for.

The established physics

M⋆ ≈ 3.7 × 10³⁰ kg ≈ 1.85 M☉ (Carr & Rees 1979; BPT Part 2.9).

The game's math

The book's Sun is SUN_CELLS = 0.54 (stars.js:132). Since 8.2 it is a fallback only. sendOutMatter() app.js:1251–1253 sizes the Sun so the drawn stars stand for the law's count:

Q          = all matter sent out, cells
D          = max(1, min(stars by law, STAR_DRAW)),   STAR_DRAW = 40,000
starMult   = stars by law / D                         real stars each drawn star stands for
sunCells   = max(10⁻³, 0.77 · Q / (D · 0.39))         cells of matter in one Sun (8.6: the floor is gone, Part 9.11)

stepStars() takes S.sun = matter.sunCells || SUN_CELLS once (stars.js:145).

Read backward: D·0.39·sunCells = 0.77·Q. 0.39 is the mean birth mass of the game's Initial Mass Function in Suns (MEAN_MASS[150] = 0.390, Part 5.5, written here as a literal). So the Sun is sized so that if 77 % of all matter became stars of the mean birth mass, exactly D stars would be drawn.

Every star count the game shows is multiplied by starMult: the HUD line (starLine(S, mult) stars.js:254, from app.js:2151), the end card (realStars() app.js:2749, trueStars() app.js:2751, app.js:2818), the run record (app.js:2217). A drawn Stellar Null Well also stands for starMult wells (Part 5.13). realPerCell() app.js:1406 = starMult / sunCells is the real Suns one drawn cell of matter stands for.

Worked case, desktop, Q ≈ 77,300 cells (Chapter 4, Part 4.5):

  • Level 28: law 41,700 stars, D = 40,000, starMult = 1.04, sunCells = 0.77 × 77,300 / (40,000 × 0.39) ≈ 3.8 cells.
  • Level 23: law 13,100 stars, D = 13,100, starMult = 1, sunCells ≈ 11.6 cells.
  • Level 202: law 1.2 × 10²², D = 40,000, starMult ≈ 3.0 × 10¹⁷, sunCells ≈ 3.8 cells.

So above about level 28 the drawn universe is the same 40,000-star model, each star standing for more.

The method, in plain steps:

drawn stars D ← min(the law's stars, 40,000)
each drawn star stands for starMult ← law / D real ones
the game's Sun ← 0.77 · all matter / (D · 0.39) cells
    so that 77% of the matter as stars of the mean birth mass draws exactly D stars

The code:

// public/game-v8.4/app.js:1251
{ const law = uni.matterLaw || matterLaw(uni.L), STAR_DRAW = 40000; let Q = 0; for (const b of matter.bodies) Q += b.m || 0;
  matter.law = law; matter.unstable = !law.stable; matter.noStars = law.stable && law.mPmp < STAR_LINE;
  const D = Math.max(1, Math.min(law.stars, STAR_DRAW)); matter.starMult = law.stars / D; matter.sunCells = Math.max(1e-3, 0.77 * Q / (D * 0.39));

In the game

The Sun's size is the first star number the player is told. When the first stars form, a banner headed First stars says "The gas has passed its Jeans mass and is collapsing into stars · one Sun here is X cells of matter, the book's 0.54 of the Stellar Mass Unit" (starToasts() app.js:734), X being S.sun to two places, about 3.80 on desktop at level 28.

starMult decides what every count means. The Stars line, the HUD's epoch line ("Universe · expanding, P% of its final size · N stars", app.js:2154) and the end card's Stars born box all show real stars of the level. When one drawn star stands for more than 1.5, the end card adds "N drawn, each for X" (app.js:2818), X about 3.0 × 10¹⁷ at level 202, so a deep universe tells the player how far its sky is a model.

It also decides how the sky looks. standLight(starMult) scene3d.js:684 gives each drawn star the light of the stars it stands for, read by its logarithm as the magnitude scale reads light: each decade of starMult adds 0.15 to a star's size and 0.1 to its brightness (applied with their own bounds at scene3d.js:776). At level 28 the stars are nearly single sharp points; at level 133 or 202 each point is a cloud's or a galaxy's light, and the glows run together into a lit web on the same 40,000 points.

The scale model

This is the scale model of the stars: D drawn, each for starMult. Masses within the stars (birth masses, remnants, metals, winds) are in the game's Suns, so every ratio of BPT Part 2.9 holds; only the Sun's size in cells changes with the level and the device.

Where the game and the theory differ

  • BPT Part 6.10 (and BPT Part 2.9, The Game's Reading) puts the game's Sun at 0.54 cells. The game uses 0.54 only as a fallback; the Sun it runs is 0.77·Q/(D·0.39), about 3.8 cells on desktop at level 28 and 11.6 at level 23.
  • The 0.77 has no stated origin in the code. It is not the 6 % of matter in stars that the law's 925 assumes (BPT Part 2.10), and nothing else in the code says why 77 %. It decides the Sun's size and so the number of stars the gas forms; it is flagged here for a ruling.
  • starMult is fixed at the Physical Nova from the law's count, whatever share of the gas actually forms stars; whether the drawn count reaches D depends on star formation (Part 5.7), which follows no 77 % rule.
  • The First stars banner calls the number it shows "the book's 0.54 of the Stellar Mass Unit" while showing S.sun, which is not 0.54 (app.js:734), and the header of stars.js (stars.js:12–15) still describes the Sun as 0.54 cells.

Fixed numbers

Number Where What it is Kind
0.54 SUN_CELLS stars.js:132 The game's Sun at m_P = m_H = 1 cell (fallback) BPT (Part 6.10, Solar Mass of a Universe)
40000 STAR_DRAW app.js:1251 Most stars drawn CAP
1 app.js:1253 Least D METHOD
0.77 app.js:1253 Share of matter assumed to become drawn stars METHOD (origin not stated: flagged)
0.39 app.js:1253 Mean birth mass, Suns (copy of MEAN_MASS[150]) PHYSICS (Kroupa 2001 IMF as the game samples it)
10⁻³ app.js:1253 Floor on the Sun, cells METHOD (removed in 8.6: it capped a deep universe near ten million stars, Part 9.11)

Part 5.4: The Star Types

The BPT law

BPT Part 2.9 (The Stars, by Their Birth Mass): "Once a clump has collapsed, its mass decides everything that follows: how hot its surface is and so its colour, how bright it is, how long it lives, how it dies and what it leaves behind." Its table runs from the hottest class to the coolest: below 0.013 M☉ planetary-mass objects; brown dwarfs (L, T, Y) 0.013–0.075, deep red to infrared, burning deuterium briefly and cooling for ever; red dwarfs (M) 0.075–0.5, "none has died yet"; orange dwarfs (K) 0.5–0.8; yellow dwarfs, the Sun, 0.8–1.2; F stars 1.2–2, white; A and late B stars 2–8, blue-white; massive B and O stars 8–25, blue; very massive O stars and Wolf–Rayet stars 25–130, blue to ultraviolet; and Population III giants of 130–250 and above 250 Suns, both marked "metal-poor". BPT Part 3.14 (The Game's Reading) says how the game is to show them: "blue-white giants bright and few in young clusters, red giants and supergiants large and orange, red dwarfs small and dim, brown dwarfs fainter still, white dwarfs as small sharp points, neutron stars blinking as pulsars".

The established physics

Spectral classes O B A F G K M (Cannon & Pickering 1918; Morgan, Keenan & Kellman 1943); end states by core mass (Woosley, Heger & Weaver 2002; Heger et al. 2003), all cited in BPT Part 2.9.

The game's math

STAR_TYPES stars.js:28 lists nine classes with min, max (Suns) and a blackbody tint rgb. typeOf(m) stars.js:40 returns the first class with m < max. REMNANT_RGB stars.js:39 tints white dwarfs and neutron stars. The B class runs 8–25 and O 25–130 (the book's "A and late B" 2–8 is the code's A class).

Brown dwarfs are drawn and tallied as type BD but are not counted as stars (they never fuse hydrogen, 2026-10-29): S.bd (stars.js:199) and the HUD's "shining" count subtracts them (stars.js:259).

The method, in plain steps:

nine classes by mass, in Suns: BD under 0.075 · M under 0.5 · K under 0.8 · G under 1.2 · F under 2 · A under 8 · B under 25 · O under 130 · III above
a star's class is the first whose upper mass it is under
brown dwarfs are drawn and tallied, but never counted as stars

The code:

// public/game-v8.4/stars.js:28 STAR_TYPES
export const STAR_TYPES = [
    { key: 'BD', name: 'brown dwarf', min: 0.013, max: 0.075, rgb: [0.62, 0.26, 0.2] },
    { key: 'M', name: 'red dwarf', min: 0.075, max: 0.5, rgb: [1.0, 0.62, 0.42] },
    { key: 'K', name: 'orange dwarf', min: 0.5, max: 0.8, rgb: [1.0, 0.8, 0.6] },
    { key: 'G', name: 'yellow dwarf', min: 0.8, max: 1.2, rgb: [1.0, 0.95, 0.84] },
    { key: 'F', name: 'F star', min: 1.2, max: 2, rgb: [0.97, 0.97, 1.0] },
    { key: 'A', name: 'A star', min: 2, max: 8, rgb: [0.8, 0.85, 1.0] },
    { key: 'B', name: 'B star', min: 8, max: 25, rgb: [0.67, 0.75, 1.0] },
    { key: 'O', name: 'O star', min: 25, max: 130, rgb: [0.6, 0.68, 1.0] },
    { key: 'III', name: 'Population III giant', min: 130, max: 1e9, rgb: [0.62, 0.62, 1.0] },
];

// public/game-v8.4/stars.js:40 typeOf()
export function typeOf(m) { for (const t of STAR_TYPES) if (m < t.max) return t; return STAR_TYPES[STAR_TYPES.length - 1]; }

In the game

Each type has its own look, set by starLook(s) scene3d.js:661 and shared by the bodies' stars and the galaxies' own. Color is a tint of the class's blackbody color on white, "as the eye sees them" (ruling quoted at scene3d.js:663–664: "the red stars should appear more as points of white light and the blue need to maintain the light as well"):

  • O, B and Population III stars: the largest ordinary points, sized by the logarithm of their luminosity and a third larger again (scene3d.js:669).
  • Red dwarfs: small and a little dimmed (scene3d.js:671); brown dwarfs: faint, small, magenta-red (scene3d.js:670).
  • Other classes: sized by the logarithm of their luminosity (scene3d.js:672).
  • Giants: a clear orange, supergiants (8 Suns or more) larger and redder (scene3d.js:668; Part 5.6).
  • White dwarfs: small pale blue-white points; neutron stars: tinier, pale blue (scene3d.js:666–667). One neutron star in five blinks as a pulsar, each with its own period of 0.25 to 1.45 seconds and a short bright flash as its beam sweeps past (scene3d.js:800, 1042–1045).

The torus's skin also carries the summed light: paintStarlight() scene3d.js:890 adds each living star's n·L in its type's color to the cell it stands in, every third step, so the skin carries the light-weighted color of the stars on it.

The Stars line names the classes in order: "N shining · O n B n A n F n G n K n M n · brown dwarfs n · giants n · white dwarfs n · neutron stars n · supernovae n · stellar wells n" (stars.js:259). A tap in a galaxy reads its stars as "N stars, X% young and blue", young and blue meaning living stars of two Suns or more not yet giants (app.js:3011, 3028).

The scale model

Exact: no scale model. Types are by birth mass in the level's Suns.

Where the game and the theory differ

  • Above 130 Suns every star is class III whatever its metals. BPT Part 2.9 reserves Population III for metal-poor gas; a metal-rich star of 130–150 Suns, which the Kroupa sampler can draw (Part 5.5), is typed III too.

Fixed numbers

Number Where What it is Kind
0.013, 0.075, 0.5, 0.8, 1.2, 2, 8, 25, 130 STAR_TYPES stars.js:29–37 Class boundaries, Suns PHYSICS (BPT Part 2.9 table)
10⁹ stars.js:37 Open top of class III METHOD (sentinel)
27 rgb values STAR_TYPES stars.js:29–37 Class tints DISPLAY
0.82, 0.88, 1.0, 0.62, 0.86, 1.0 REMNANT_RGB stars.js:39 White dwarf and neutron star tints DISPLAY

Part 5.5: The Initial Mass Function

The BPT law

BPT Part 2.9 states the Initial Mass Function: dN/dM = ξ₀·(M/M☉)^(−α), "how many stars are born at each mass: a few heavy ones, a great many light ones", where ξ₀ is "how much gas the region turned into stars" and the slope α is 2.35 above about 0.5 M☉ (Salpeter 1955) and 1.3 from 0.08 to 0.5 M☉ (Kroupa 2001). "Counted by number, about three stars in four are red dwarfs, about one in eight is Sun-like or heavier, and about one in six hundred is massive enough to end as a black hole." BPT Part 2.10 takes its mean birth mass, "near 0.42 Suns (Kroupa, 2001)", into the law of Protons in a Star, and BPT Part 6.10 (Stellar Null Well Fraction) integrates it: 76 % of stars red dwarfs and 1.3–1.8 × 10⁻³ ending as wells, with the heaviest stars M⇑ ≈ 150 M☉.

For the first stars, BPT Part 2.9 (Generations and Feedback) says Population III "formed from metal-free gas that could barely cool, so its stars were massive, tens to hundreds of Suns". BPT Part 3.12's game reading makes it a rule: "A cloud with fewer metals than the critical metallicity makes stars of ten to three hundred Suns."

The established physics

  • Kroupa (2001): slopes 0.3 (0.01–0.08 M☉), 1.3 (0.08–0.5), 2.3 (above 0.5).
  • Salpeter (1955): slope 2.35.
  • Population III: metal-free gas cools through H₂ to about 200 K and makes stars of tens to hundreds of Suns (Bromm & Larson 2004; Hirano et al. 2014); the critical metallicity (Bromm et al. 2001).

The game's math

Ordinary gas (cloud metals Z ≥ Z_crit, Z_CRIT heat.js:36). imfTable(150) stars.js:62 builds three power-law segments from IMF_SEGS stars.js:61, [0.013, 0.08] slope 0.3, [0.08, 0.5] slope 1.3, [0.5, 150] slope 2.3, joined continuously at the breaks (k ← k·lo^(a − a_prev)), each with weight w = k·(hi^(1−a) − lo^(1−a))/(1 − a).

Metal-free gas (Z < Z_crit). popIIITable() stars.js:76: one segment, [10, 300], slope 2.35.

sampleIMF(u, metalFree) stars.js:78: x = u·total; pick the segment where x falls; invert its power law:

m = [ lo^(1−a) + f·(hi^(1−a) − lo^(1−a)) ]^(1/(1−a)),   f = x / w

The uniform u comes from draw(seed, n) stars.js:92, a hash of the body's seed and the running count of stars formed, so a replay draws the same masses.

MEAN_MASS stars.js:130 is the midpoint-rule mean of 4,000 draws (u = (i + 0.5)/4000) for each table. Computed here from the code's own formulas (not measured in a run): 0.390 Suns for ordinary gas and 27.1 Suns for metal-free gas.

Computed the same way, the share of drawn ordinary stars by class: brown dwarfs 33.5 %, M 51.1 %, K 7.0 %, G 3.4 %, F 2.4 %, A 2.1 %, B 0.32 %, O 0.084 %, III 0.002 %. Of the hydrogen-burning stars, 77 % are red dwarfs and 0.13 % are 25 Suns or more, against BPT Part 6.10's 76 % and 1.3–1.8 × 10⁻³: the game's draw agrees with the book's integral.

The method, in plain steps:

ordinary gas (with metals): Kroupa's three power laws
    0.013–0.08 Suns slope 0.3 · 0.08–0.5 slope 1.3 · 0.5–150 slope 2.3
metal-free gas: one power law, 10–300 Suns, slope 2.35
to draw a mass: pick a segment by its weight, invert its power law
    m ← [lo^(1−a) + f · (hi^(1−a) − lo^(1−a))]^(1/(1−a))
the random number is a hash of the body and the count of stars formed, so a replay draws the same

The code:

// public/game-v8.4/stars.js:62 imfTable()
function imfTable(mMax) {
    const segs = []; let k = 1, prevA = null, total = 0;
    for (const [lo, hi0, a] of IMF_SEGS) {
        const hi = hi0 === null ? mMax : hi0;
        if (prevA !== null) k *= Math.pow(lo, a - prevA);   /* continuous at the breaks */
        const w = k * (Math.pow(hi, 1 - a) - Math.pow(lo, 1 - a)) / (1 - a);
        segs.push({ lo, hi, a, k, w }); total += w; prevA = a;
    }
    return { segs, total };
}

// public/game-v8.4/stars.js:76 popIIITable()
function popIIITable() { const a = 2.35, lo = 10, hi = 300, w = (Math.pow(hi, 1 - a) - Math.pow(lo, 1 - a)) / (1 - a); return { segs: [{ lo, hi, a, k: 1, w }], total: w }; }

// public/game-v8.4/stars.js:78 sampleIMF()
export function sampleIMF(u, metalFree) {
    const T = IMF[metalFree ? 300 : 150];
    let x = u * T.total;
    for (const s of T.segs) {
        if (x <= s.w || s === T.segs[T.segs.length - 1]) {
            const f = Math.min(1, x / s.w), a = s.a;
            return Math.pow(Math.pow(s.lo, 1 - a) + f * (Math.pow(s.hi, 1 - a) - Math.pow(s.lo, 1 - a)), 1 / (1 - a));
        }
        x -= s.w;
    }
    return 1;
}

// public/game-v8.4/stars.js:92 draw()
function draw(seed, n) {
    let t = (Math.imul((seed >>> 0) ^ 0x9e3779b9, 2654435761) + Math.imul(n + 1, 40503)) >>> 0;
    t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
    return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
}

In the game

The function is what gives the sky its proportions. Of every hundred points of starlight in an ordinary population about half are small dim red dwarfs, a third are faint brown dwarfs, and only one or two are the large blue-white points of A stars and heavier; the HUD's class counts show the same steep fall from M to O.

The first generation looks different. While a cloud is below the critical metallicity its stars are drawn from 10 to 300 Suns, so the first stars a universe lights are all large blue-white B, O and Population III points, and its first supernovae follow at once: the mean metal-free star, 27 Suns, lives under a fiftieth of a Tempo, and even the lightest, 10 Suns, about two Tempos on desktop (Part 5.6). Once supernovae have returned metals to a cloud (Part 5.10), its next stars are drawn from the Kroupa function and the small red points appear. A tap in a galaxy shows which gas it is: "metals none yet" while its gas is under a hundredth of the Sun's metals, otherwise "metals X of the Sun's" (app.js:3031).

The scale model

Exact: no scale model. Every drawn star's mass is drawn from the whole function; lots (Part 5.8) share one draw.

Where the game and the theory differ

  • The book's mean birth mass of 0.42 Suns (BPT Part 2.10) and the code's 0.390 differ because the code's lower end is 0.013 Suns, not 0.01 or 0.08, and its sampler includes brown dwarfs. The law's 925 uses 0.42; the Sun's size uses 0.39 (Part 5.3).
  • The code's comment says the first Kroupa slope runs from 0.01 M☉ (stars.js:58); IMF_SEGS starts at 0.013 (stars.js:61).

Fixed numbers

Number Where What it is Kind
0.013 IMF_SEGS stars.js:61 Lowest birth mass PHYSICS (deuterium-burning limit, BPT Part 2.9)
0.08, 0.5 IMF_SEGS stars.js:61 Kroupa break masses PHYSICS (Kroupa 2001)
0.3, 1.3, 2.3 IMF_SEGS stars.js:61 Kroupa slopes PHYSICS (Kroupa 2001)
150 IMF stars.js:77 Highest birth mass, ordinary gas PHYSICS (BPT Part 6.10, M⇑ ≈ 150 M☉)
10, 300 popIIITable() stars.js:76 Range of metal-free birth masses PHYSICS (Bromm & Larson 2004; Hirano et al. 2014)
2.35 popIIITable() stars.js:76 Metal-free slope PHYSICS (Salpeter 1955; named as the one choice)
1 stars.js:88 Fallback mass METHOD
4000, 0.5 MEAN_MASS stars.js:130 Midpoint draws for the mean METHOD
0x9e3779b9, 2654435761, 40503, 15, 7, 14, 61, 4294967296 draw() stars.js:93–95 Hash for reproducible draws METHOD

Part 5.6: Lifetimes, Luminosity and the Giant Phase

The BPT law

BPT Part 2.9 gives the Main-Sequence Lifetime, τ⊛ = τ☉·(M/M☉)^(−2.5): "The heavier the star, the faster it burns: lifetime falls as mass to the −2.5", with τ☉ ≈ 10¹⁰ years. "A star's fuel grows with its mass but its brightness grows much faster, about as M^3.5, so the heaviest stars die first … Its first deaths, and its first Stellar Null Wells, come within a few million years of its first stars; its white dwarfs accumulate for billions of years; its red dwarfs outlive everything else in it." BPT Part 6.10 states the Mass–Luminosity Relation, L⊛ = L☉·(M/M☉)^3.5, "a star's brightness rises steeply with its mass", 3.5 being "the average over the stars that matter most for the light of a galaxy".

BPT Part 2.9's Giant Phase, t⋆ᵍ = 0.1·t⋆: "Through about nine tenths of its life it burns hydrogen in its core on the main sequence; in the last tenth it changes shape and colour." A star like the Sun swells into a red giant; one of more than about eight Suns into a supergiant. Red dwarfs, in the book's table, fade and are never giants. BPT Part 6.10's Game's Reading sets the clock: the lifetime M^(−2.5) with "the game's Sun living a set share of its universe's life".

The established physics

Mass–luminosity and lifetime power laws, and a giant phase of about a tenth of the main sequence (Kippenhahn, Weigert & Weiss 2012; Iben 1967; cited in BPT Part 2.9). Below 0.075 M☉ there is no hydrogen burning.

The game's math

lifetime(m, τ☉) = ∞                 if m < 0.075          stars.js:43
                = τ☉ · m^(−2.5)     otherwise              (Tempos)
luminosity(m)   = 10⁻⁴              if m < 0.075          stars.js:45
                = m^3.5             otherwise              (Suns)

τ☉ = matter.tauSun = max(8, lifeEndTempo − universePulses) at the burst (app.js:1246): the Sun lives the whole life from the Physical Nova to the End of the Outward Expansion, 2^Lm Tempos. The fallback in stepMatterPost() is max(8, rupturePulses) (app.js:665).

A lot becomes a giant once (s.giant) when it is alive, not a remnant, at least 0.3 Suns, and now − born ≥ 0.9·life (stars.js:207). It is counted under giants while alive.

luminosity() does not move any mass. It weights each star's light in the galaxy readout (app.js:3014) and in the drawing (scene3d).

Worked case, desktop (τ☉ = 64 Tempos, one sub-step = 1/8 Tempo):

Birth mass Life (Tempos) In the life of 64?
0.5 362 no: K and M dwarfs never die in the life
0.8 112 no
1.2 40.6 yes
8 0.35 (under three sub-steps) yes
25 0.020 (the next sub-step) yes

So massive stars live and die within a sub-step or three of their birth, as in BPT Part 2.9 ("its first deaths come within a few million years of its first stars").

The method, in plain steps:

life ← τ☉ · m^(−2.5) Tempos (forever below 0.075 Suns)     τ☉: the Sun lives the whole life
light ← m^3.5 Suns (10⁻⁴ below 0.075)
in the last tenth of its life a star of 0.3 Suns or more is a giant

The code:

// public/game-v8.4/stars.js:43 lifetime()
export function lifetime(m, tauSun) { return m < 0.075 ? Infinity : tauSun * Math.pow(m, -2.5); }

// public/game-v8.4/stars.js:45 luminosity()
export function luminosity(m) { return m < 0.075 ? 1e-4 : Math.pow(m, 3.5); }

In the game

The ordering in time is what the player sees. The large blue-white points of O and B stars appear and are gone in moments, each ending in a supernova flash (Part 5.9); F and G stars, the Sun's kind, shine through most of the run and the heavier ones swell into orange giants late in it; K and M dwarfs shine to the end. The Stars line's giants count rises in the last part of the life, and white dwarfs pile up behind them.

Luminosity decides what is drawn. A body's drawn points take its stars brightest first (scene3d.js:761), so a clump holding one O star shows it before its hundreds of red dwarfs; a lone point counts as a star only if it holds one as bright as the Sun, else it shows its gas (scene3d.js:764). A star's drawn size grows with the logarithm of 1 + L (scene3d.js:669, 672), and the starlight on the torus's skin and a galaxy's color are weighted by n·L (scene3d.js:916; app.js:3014). A giant is drawn swollen: a clear orange at a size of 0.06, a supergiant redder at 0.1, against 0.014 for a red dwarf (scene3d.js:668, 671).

The scale model

The lifetimes are shares of the scale model's life: a star of mass m lives m^(−2.5) of the life wherever it is drawn. The true life is 2^L Tempos; the shares are the same.

Where the game and the theory differ

  • The game lets stars from 0.3 Suns become giants (stars.js:207); BPT Part 2.9's table makes giants of stars from 0.5 Suns and says red dwarfs never are. With τ☉ the whole life, a star under 0.5 Suns never reaches nine tenths of its life in the run, so no red dwarf is ever drawn as a giant.
  • BPT Part 2.9's Sun lives about 10¹⁰ years in a universe of 11.0 × 10⁹ years to the End of its Outward Expansion; the game's Sun lives the whole life from the Physical Nova to the End of the Outward Expansion. This is the "set share" of BPT Part 6.10's Game's Reading, taken as one.

Fixed numbers

Number Where What it is Kind
0.075 stars.js:43, 45 Hydrogen-burning limit PHYSICS (BPT Part 2.9)
−2.5 lifetime() stars.js:43 Lifetime exponent PHYSICS (BPT Part 2.9)
3.5 luminosity() stars.js:45 Mass–luminosity exponent PHYSICS (BPT Part 6.10)
10⁻⁴ luminosity() stars.js:45 Brown dwarf light, Suns METHOD (unsourced floor)
8 app.js:1246, 665 Floor on τ☉, Tempos METHOD
0.9 stars.js:207 Giant from nine tenths of the life BPT (Part 2.9, Giant Phase)
0.3 stars.js:207 Least mass that becomes a giant METHOD (not stated in BPT, whose line is 0.5)

Part 5.7: Where Stars Form: the Gas Depletion Law

The BPT law

BPT Part 6.10 states the Gas Depletion Law, t⇣⊛ = t⇣⊚·(ρ/ρ⇥)^(−0.4): "Gas in galaxies turns into stars over a depletion time, shorter where it is denser." Here t⇣⊚ is the depletion time at the threshold density, "about 2 × 10⁹ years in galaxies today, about 0.145 of the universe's age", ρ the density of the gas and ρ⇥ "the threshold above which gas forms stars". It is the Kennicutt–Schmidt law written as a depletion time, "the rule every cosmological simulation uses below the scale it can resolve, since no simulation of a universe resolves the cores where stars actually form. Measured over the whole life of a universe, the depletion time is a fixed share of its age." Its neighbor, the Star Formation Rate Ṁ⊛ = ε⇓·M_gas/t⇓ (about 1 % per free fall), is the rule at the scale of the cores.

The Part's Game's Reading, Formally, says how the game applies it: "gas in 8 × 8-cell clouds denser than twice the mean (per real area of the torus) turns into stars over t⇣⊛ = 0.145 · T · (ρ/ρ⇥)^(−0.4), T the life from the Physical Nova, each star drawing its mass from its cloud's gas". BPT Part 2.9's Star Formation Condition, the Jeans mass M_J = (π²·√π/6)·σ³/(G·√(G·ρ)), is "about half a Sun to a Sun" in today's cold dense cores. BPT Part 3.14 (Feedback) adds that gas a supernova or quasar has heated forms no stars for a while.

The established physics

  • Kennicutt–Schmidt law Σ_SFR ∝ Σ_gas^1.4 (Kennicutt 1998; Bigiel et al. 2008), so depletion time ∝ ρ^(−0.4), about 2 Gyr today.
  • Star formation at 1 % per free fall (Krumholz & McKee 2005), the rule this replaced.
  • Gas heated by a supernova or quasar forms no stars until it cools (BPT Part 3.14, Feedback).

The game's math

In stepStars() stars.js:144–184. Clouds are CL × CL cells, CL = matter.cloud (8 on desktop, 2 on a phone; Chapter 4, Part 4.15). For each cloud: its gas, mass and metals; Z = metals/gas (stars.js:154–155).

meanCloud = all matter / (rows · cols)                 matter per cell (the name says cloud; it is per cell)
rhoC      = cloud mass / CL² / fr                      fr the row's area share (below)
rhoTh     = KS_THRESHOLD · meanCloud,  KS_THRESHOLD = 2
gate: body has gas, its cloud holds more than one Sun of gas, rhoC ≥ rhoTh, and the body is not hot
      (b.hotUntil > flipNow)
t_dep = KS_DEPLETION · max(1, life or 2·τ☉) · (rhoC / rhoTh)^(−0.4),   KS_DEPLETION = 0.145,  life = physLife (flips)
pend += min(gas, gas · dt · sfHeat / t_dep) / S.sun                  Suns set toward stars this sub-step

sfHeat is the share of the full rate its galaxy's heat allows (Chapter 4, Part 4.14): 1 by default, 0 outside every galaxy after reionization, f from galaxyHeat() inside one.

Depletion Time Evolution (v8.6, 15 November 2026). Measured over a default life (level 202, model level 5), the star-formation rate ran flat from a = 0.1 to 0.45 and rose by half again toward a = 0.7, where the sky's rises to a peak near z ≈ 2, a quarter of the life, and falls eightfold by its end (Madau & Dickinson 2014). The sky also measures that galaxies used their gas faster when young: the molecular depletion time scales as (1 + z)^(−0.6), about 0.7 Gyr at cosmic noon against 2 Gyr today (Genzel et al. 2015; Tacconi et al. 2018). BPT Part 6.10 now carries it as the Depletion Time Evolution, t⇣⊚(a) = t⇣⊚ · a^0.6, and stepStars() multiplies t_dep by matter.a^0.6 (a from expansionA(), set each step in app.js), the 0.145 of the life holding at full size: t_dep = 0.145 · life · (ρ/ρ⇥)^(−0.4) · a^0.6. See Part 9.11, The Fable review, for the rate measured after.

The gate asks the cloud for a Sun of gas, not the clump (ruling 2026-10-28: 57 % of all gas sat in clumps under one Sun inside clouds that could pay for stars). Density is the cloud's, not the cell's (2026-10-26: at cell scale every body formed stars, 82 % of all matter). The Kennicutt–Schmidt depletion (stars.js:100–109, 2026-10-27, after only 7 % of a level-5 universe's matter became stars) is what runs.

Worked case, desktop: physLife = 128 flips, so at the threshold t_dep = 0.145 × 128 = 18.6 flips; a cloud at ten times the threshold: 18.6 × 10^(−0.4) ≈ 7.4 flips. In one quarter-flip sub-step a pure-gas body there sets aside gas·0.25/7.4 ≈ 3.4 % of its gas.

The method, in plain steps:

for each body with gas, in its cloud of CL × CL cells:
    the gate: the cloud holds more than a Sun of gas, is at least twice the mean density,
              and the body is not still hot from feedback
    depletion time ← 0.145 · life · (density / threshold)^(−0.4)       Kennicutt–Schmidt
    set aside toward stars ← gas · dt · (its galaxy's heat share) / depletion time

The code:

// public/game-v8.4/stars.js:182
if (b.gas > 0 && cl && cl.gas > S.sun && rhoC >= rhoTh && !(b.hotUntil > (matter.flipNow || 0))) {   /* gas a supernova or quasar has heated forms no stars until it cools (8.3; book Part 3.14, Feedback) */
    const tdep = KS_DEPLETION * Math.max(1, life || tauSun * 2) * Math.pow(rhoC / rhoTh, -0.4);
    b.pend = (b.pend || 0) + Math.min(b.gas, b.gas * dt * (b.sfHeat ?? 1) / tdep) / S.sun;   /* Suns set toward stars, at the share its heat allows (app.js updateGalaxies, heat.js) */

In the game

Star formation is the gas haze turning into light. Before it, a body's points are its gas: large, faint, soft points in the data's color that add up to a glow where matter gathers and fade in the voids (scene3d.js:781–782). As a body's gas becomes stars, the share of its points drawn as stars follows its star share, 1 − gas/m (scene3d.js:762–763), so the filaments and clumps where the clouds are densest light first and the voids stay haze, as the book's reading says. The HUD's epoch line reads "Universe · expanding, …% of its final size · gas collapsing" until stars live, then counts them (app.js:2154). When the universe is half grown a banner says "Half its final size · filaments are forming along the scaffold, stars igniting in them · N shining" (app.js:672).

A tap in a galaxy that has no stars yet reads "a cloud of gas gathering round its well, no stars lit yet", followed by its heat mode, virial temperature and metals (app.js:3031–3032). Gas a supernova or a feeding well has just heated stays dark until it cools (Part 5.12), so a burst of supernovae stops star birth in the gas round it for about two flips.

The player changes star formation through the level (the law's count and the Sun, Part 5.3) and, less directly, the device: a phone runs the same share of the universe in fewer, wider cloud cells.

The scale model

The depletion time is a share of the life, so it is the same share at every level. The cloud is the same share of the universe on every device. The threshold is a ratio to the mean, so it needs no scaling.

Where the game and the theory differ

  • The per-area weight is inert. fr = max(0.05, rowArea(...)/rowAreaMean) (stars.js:175) applies only if matter.rowArea is set, and nothing in 8.4 sets it: sendOutMatter() computes rowArea and discards it because the field is drawn equal-area (app.js:1227–1228). So fr = 1 always. BPT Part 6.10's "(per real area of the torus)" describes code that does nothing now.
  • The 1 % rule is not used. EPS_FF = 0.01 (stars.js:98) is exported and never read, and the header comment (stars.js:10–11) and the comment at stars.js:167–171 still describe the free-fall rule.
  • BPT Part 6.10 names 8 × 8-cell clouds; the game's cloud is a share of the universe, 8 × 8 cells on desktop and 2 × 2 on a phone (Chapter 4, Part 4.15).

Fixed numbers

Number Where What it is Kind
0.145 KS_DEPLETION stars.js:109 Depletion time at threshold, share of the life PHYSICS (Kennicutt 1998; Bigiel et al. 2008; BPT Part 6.10)
2 KS_THRESHOLD stars.js:109 Threshold density over the mean METHOD (named as the one choice)
−0.4 stars.js:183 Depletion exponent, 1 − 1.4 PHYSICS (Kennicutt 1998)
0.01 EPS_FF stars.js:98 Star formation per free fall, unused PHYSICS (Krumholz & McKee 2005; dead code)
2 (×) stars.js:183 2·τ☉ in flips when life is not given BPT (Part 1.10, two flips a Tempo)
1 stars.js:183 Floor on the life METHOD
8 stars.js:144 Default cloud side METHOD (overridden by setCloud)
10⁻⁶ stars.js:166 Floor on block density METHOD
0.05 stars.js:175 Floor on a row's area share (inert) METHOD (dead code)
1 stars.js:182 A cloud must hold more than one Sun of gas BPT (Part 2.9: Jeans mass about one Sun)

Part 5.8: Drawing the Stars in Lots

The BPT law

BPT Part 6.10's Game's Reading says only that each star draws "its mass from its cloud's gas", and BPT Part 2.9's Initial Mass Function gives the share of stars at each mass, with ξ₀ "how much gas the region turned into stars". Together they fix what an honest draw must do: turn a mass of gas into a number of stars whose masses follow the function. How many stars are drawn at once, and how they are grouped, BPT does not state; it is a game method serving the Initial Mass Function and the Gas Depletion Law.

The established physics

An unbiased draw: the expected number of stars is the gas set aside over the mean birth mass, each mass drawn from the whole function, so the mass balances on average. Waiting until each drawn star can be afforded biases toward small ones (measured, 85 % brown dwarfs; stars.js:186–187).

The game's math

stars.js:186–203, for a body past the gate:

mean  = MEAN_MASS[metal-free ? 300 : 150]           27.1 or 0.390 Suns
λ     = pend / mean
k     = ⌊λ⌋, plus one with probability λ − ⌊λ⌋     (draw(seed ^ 0x5bd1e995, formed + 7))
pend -= k · mean
draws = min(k, 48);  base = ⌊k / draws⌋;  extra = k mod draws
for d in 0 .. draws−1:
    m    = sampleIMF(draw(seed, formed + d), metalFree)
    n    = base + (1 if d < extra else 0)            stars in this lot, all of mass m
    need = n · m · S.sun                              cells of gas
    if not takeGas(b, need): stop
    add n stars of mass m, born now, to a lot with the same mass bin and birth Tempo, or a new lot
formed += k

takeGas(b, need) stars.js:158 takes the gas from the body first, then from the other bodies of its cloud (moving their mass into this body), and fails if the cloud holds less than need. A lot is matched by mass bin mb = round(20·log₁₀ m) (0.05 dex), birth Tempo pb = ⌊now⌋ and metal-freedom; joining a lot averages its metals (stars.js:197–198).

b.sfAcc accumulates the gas turned into stars, read by the galaxy's central well for its feeding (feedWellFromStars() app.js:3097, documented with the galaxies in Chapter 6).

Worked case: a body with pend = 20 Suns in ordinary gas: λ = 20/0.39 ≈ 51.3, so k = 51 or 52; draws = 48; base = 1, extra = 3 or 4: three or four lots of two stars and the rest of one.

The method, in plain steps:

λ ← the Suns set aside / the mean birth mass;  k ← ⌊λ⌋, plus one by chance
draw at most 48 masses from the IMF; share the k stars among them
for each: take its gas from the body, then from its cloud; stop if the cloud runs out
gather stars of the same mass bin and birth Tempo into one lot

The code:

// public/game-v8.4/stars.js:188
const mean = MEAN_MASS[metalFree ? 300 : 150], lam = b.pend / mean;
let k = Math.floor(lam); if (draw(b.seed ^ 0x5bd1e995, S.formed + 7) < lam - k) k++;
if (k > 0) {
    b.pend -= k * mean;
    const draws = Math.min(k, 48), base = Math.floor(k / draws), extra = k % draws, pb = Math.floor(now);   /* whole stars in every lot */
    for (let d = 0; d < draws; d++) {
        const m = sampleIMF(draw(b.seed, S.formed + d), metalFree), n = base + (d < extra ? 1 : 0), t2 = typeOf(m), mb = Math.round(Math.log10(m) * 20);
        const need = n * m * S.sun; if (!takeGas(b, need)) break;
        b.sfAcc = (b.sfAcc || 0) + need;   /* gas turned into stars, read by its well's feeding (app.js feedWellFromStars) */
        let lot = b.pop.find((s) => s.alive && s.mb === mb && s.pb === pb && s.metalFree === metalFree);
        if (lot) { lot.Z = ((lot.Z || 0) * lot.n + Zc * n) / (lot.n + n); lot.n += n; } else b.pop.push({ m, n, mb, pb, born: now, life: lifetime(m, tauSun), cls: t2.key, alive: true, metalFree, Z: Zc });
        ev.born += n; if (t2.key === 'BD') S.bd = (S.bd || 0) + n;   /* brown dwarfs are no stars (they never fuse hydrogen): counted apart (2026-10-29) */
        if (S.firstAt === null) { S.firstAt = now; ev.firstStars = { r: b.r, c: b.c, sun: S.sun }; }
    }
    S.formed = Math.round(S.formed + k); b.starsV = (b.starsV || 0) + 1;

// public/game-v8.4/stars.js:158 takeGas()
const takeGas = (b, need) => {
    const c = cloud.get(cloudOf(b)); if (!c || c.gas < need) return false;
    let rest = need; const own = Math.min(b.gas, rest); b.gas -= own; b.zm = Math.max(0, (b.zm || 0) - own * c.Z); rest -= own;
    for (const o of c.bodies) { if (rest <= 1e-12) break; if (o === b || !(o.gas > 0)) continue; const tk = Math.min(o.gas, rest); o.gas -= tk; o.zm = Math.max(0, (o.zm || 0) - tk * c.Z); o.m -= tk; b.m += tk; rest -= tk; }
    c.gas -= need; c.zm = Math.max(0, (c.zm || 0) - need * c.Z); return true;
};

In the game

Lots are not shown as such. A body's drawn points cycle through its lots, brightest first (scene3d.js:761, 769), so a lot of many stars of one mass is drawn as that many points of one look. Each birth, death or giant marks the body changed (b.starsV, stars.js:202, 207, 213), and the scene recolors its points only then (scene3d.js:759). The count of stars made goes to the HUD and, as formed, to the end card's Stars born (app.js:2751, 2783).

The scale model

Each drawn star stands for starMult real ones (Part 5.3); each lot is n drawn stars of one mass.

Where the game and the theory differ

  • The lots of 48. At most 48 distinct masses are drawn per body per sub-step; with k > 48 stars, each lot holds about k/48 stars of one drawn mass. The total number and the mean mass are kept; the spread of masses within one sub-step's birth is limited to 48 values, against a function that has a mass for every star.
  • The formed count can outrun the stars made. If takeGas fails partway (the cloud runs short), the loop stops, but pend was already reduced by k·mean and S.formed still adds all k (stars.js:191, 202). The stars not made are lost from pend and counted in formed; ev.born and the lots count only those made. "Stars born" on the end card reads formed (app.js:2751, 2783).

Fixed numbers

Number Where What it is Kind
48 stars.js:192 Most distinct mass draws per body per sub-step CAP
0x5bd1e995, 7 stars.js:189 Hash salt and offset for the extra-star draw METHOD
20 stars.js:194 Lot mass bins per decade METHOD
10⁻¹² stars.js:161 Gas below which taking stops METHOD

Part 5.9: How Stars End

The BPT law

BPT Part 2.9 (How the Stars End): "A star dies when its core runs out of fuel it can burn. What it leaves depends on what can still hold the core up." Electron pressure holds a core of up to about 1.4 Suns, the Chandrasekhar Limit, a white dwarf; neutron pressure up to about 2.3 Suns, the neutron-star limit (Tolman; Oppenheimer & Volkoff), a neutron star; above that "the core falls inside its own horizon". Its summary: "Birth mass decides the remnant: a white dwarf from 0.075 to 8 M☉, a neutron star from 8 to 25 M☉, a Stellar Null Well from 25 to 130 M☉; in metal-poor gas, nothing from 130 to 250 M☉ and direct collapse above." The table gives the events: red giants and planetary nebulae for stars of 0.5–8 Suns, core-collapse supernovae and neutron stars of 1.2–2.3 Suns for 8–25, Null Wells of 5–50 Suns for 25–130, "pair-instability supernova: the whole star blown apart" for metal-poor 130–250, and "direct collapse, no explosion", "Null Well of 100 M☉ or more", above 250. The Last Tenth adds that a Sun-like star "at the end blows off its outer layers as a glowing shell, a planetary nebula".

BPT Part 6.10 gives the formal pieces: the White Dwarf Initial–Final Mass Relation, M⊘f ≈ 0.109·M + 0.394 M☉ for birth masses 0.8–8 M☉ (Kalirai et al. 2008); the Chandrasekhar Limit, M⊘ = 3.098·m_P³/(μₑ·m_H)², 1.43 M☉ for carbon–oxygen; and the Stellar Null Well Threshold, M▣ > M_TOV ≈ 2.3 M☉.

The established physics

Kalirai et al. (2008), the initial–final mass relation; Chandrasekhar (1931); Tolman (1939), Oppenheimer & Volkoff (1939); Woosley, Heger & Weaver (2002); Heger et al. (2003); Heger & Woosley (2002) for pair instability.

The game's math

fate(m, metalFree) stars.js:48:

m < 0.5                       none (outlives the universe)
m < 8                         white dwarf, rem = min(1.4, 0.109·m + 0.394)
m < 25                        neutron star, rem = 1.4, supernova
m < 130                       Stellar Null Well, rem = min(47, 5 + 0.4·(m − 25)), supernova
m < 250 and metal-free        pair-instability supernova, rem = 0
otherwise                     direct collapse, rem = 0.9·m, no supernova

In stepStars() stars.js:210–237, for each lot whose life is over:

ejecta = m − rem;   ej = n · ejecta · S.sun   cells returned to the body's gas
white dwarf: class WD, m ← rem;  a planetary nebula flash (up to 24 a step)
neutron star: class NS, m ← rem
pair instability: class gone, m ← 0
well: class gone; the body loses n·rem·S.sun cells; up to min(n, 4) wells are reported,
      each of mass (n / min(n, 4))·rem·S.sun

Remnant white dwarfs and neutron stars stay in the body (its mass includes them). The tallies S.sn, S.wd, S.ns, S.pisn, S.bh add n each.

Worked case: a lot of 3 stars of 40 Suns dies: rem = 5 + 0.4 × 15 = 11 Suns each; ejecta 29 Suns each; with S.sun = 3.8 cells (desktop, level 28), 3 × 29 × 3.8 ≈ 330 cells go back to gas and 3 wells of 11 Suns (42 cells) each are reported.

The code's linear remnant law gives 5–47 Suns over 25–130, inside the book's 5–50.

The method, in plain steps:

when a lot's life is over, by its birth mass m:
    < 0.5    lives on
    < 8      a white dwarf, remnant min(1.4, 0.109·m + 0.394)
    < 25     a neutron star of 1.4, a supernova
    < 130    a Stellar Null Well, remnant min(47, 5 + 0.4·(m − 25)), a supernova
    < 250 and metal-free: a pair-instability supernova, nothing left
    else     a direct collapse, 0.9·m
the ejecta return to the body's gas

The code:

// public/game-v8.4/stars.js:48 fate()
export function fate(m, metalFree) {
    if (m < 0.5) return { end: 'none' };                                         // brown and red dwarfs outlive the universe
    if (m < 8) return { end: 'wd', rem: Math.min(1.4, 0.109 * m + 0.394) };      // white dwarf, Kalirai et al. (2008)
    if (m < 25) return { end: 'ns', rem: 1.4, sn: true };                        // core-collapse supernova, neutron star
    if (m < 130) return { end: 'bh', rem: Math.min(47, 5 + (m - 25) * 0.4), sn: true };   // Stellar Null Well, 5–47 M☉
    if (m < 250 && metalFree) return { end: 'pisn', rem: 0, sn: true };          // pair instability: nothing is left
    return { end: 'bh', rem: 0.9 * m, sn: false };                               // direct collapse
}

// public/game-v8.4/stars.js:210
if (b.pop) for (const s of b.pop) {
    if (!s.alive || now - s.born < s.life) continue;
    const f = fate(s.m, s.metalFree);
    s.alive = false; b.starsV = (b.starsV || 0) + 1;
    const n = s.n || 1, ejecta = s.m - (f.end === 'bh' ? f.rem : (f.rem || 0));
    const ej = n * Math.max(0, ejecta) * S.sun, made = ej * newMetals(s.m, f);
    b.gas += ej; b.zm = (b.zm || 0) + ej * (s.Z || 0) + made; S.metals += made;   /* returned to its gas: its birth metals and the new (Metals Returned) */

In the game

Every death with a supernova flashes where it happened: a shell that starts white-hot and turns blue-violet as it spreads, growing as the square root of its age and fading as the square of what is left, over a flash life of 16, twice a merger's 8 (stepFlashes() scene3d.js:1049–1062, FLASH_LIFE scene3d.js:18). A white dwarf's birth glows as a soft teal planetary nebula, flash life 10, round the new remnant (scene3d.js:1060). The dead star's point becomes a small pale white dwarf or a tiny neutron star, one in five of which blinks as a pulsar (Part 5.4); a pair-instability giant or a collapsed core leaves no point at all.

Each kind of death is announced once, by starToasts() app.js:731–738:

  • First supernova: "A star of N Suns has exploded, returning its metals to the gas"
  • First white dwarf: "A Sun-like star has shed its outer layers and left a white dwarf"
  • First neutron star: "A supernova has left a neutron star behind"
  • Pair-instability supernova: "A metal-free giant has blown itself apart, leaving nothing"

When the universe is nine tenths grown the banner "the web stands" adds "· N supernovae so far" (app.js:673). The Stars line keeps the running counts of white dwarfs, neutron stars, supernovae and stellar wells, and the end card's Stars born box lists "… supernovae · … white dwarfs · … neutron stars · … stellar wells" (app.js:2818). The wells themselves are Part 5.13.

The scale model

Masses are in the level's Suns; each drawn remnant stands for starMult real ones.

Where the game and the theory differ

  • A metal-rich star of 130–150 Suns (possible under the Kroupa top of 150) is not metal-free, so it takes the last branch, direct collapse to 0.9·m, a case BPT Part 2.9's table does not cover.
  • BPT Part 2.9 gives direct collapse above 250 Suns "a Null Well of 100 M☉ or more"; the game keeps nine tenths of the star, 0.9·m.
  • Every neutron star is 1.4 Suns; BPT Part 2.9 gives a range of 1.2–2.3.
  • The initial–final mass relation, which BPT Part 6.10 states for birth masses of 0.8–8 Suns, is applied from 0.5.

Fixed numbers

Number Where What it is Kind
0.5 fate() stars.js:49 Below this, no death in the life PHYSICS (BPT Part 2.9 table)
8, 25, 130, 250 fate() stars.js:50–53 End-state boundaries, Suns PHYSICS (BPT Part 2.9)
1.4 stars.js:50 Chandrasekhar cap on a white dwarf PHYSICS (Chandrasekhar 1931; BPT Part 6.10)
0.109, 0.394 stars.js:50 Initial–final mass relation PHYSICS (Kalirai et al. 2008)
1.4 stars.js:51 Neutron star mass PHYSICS (canonical; BPT range 1.2–2.3)
5, 0.4, 47 stars.js:52 Linear Stellar Null Well mass over 25–130 Suns METHOD (a linear fit inside BPT's 5–50)
0.9 stars.js:54 Direct collapse keeps nine tenths METHOD (BPT says "100 M☉ or more")
24 stars.js:233 Planetary nebula flashes per step CAP (drawing)
4 stars.js:236 Most wells reported per dying lot CAP
10⁻⁶, 10⁻⁹ stars.js:240, 243 Bodies lighter than this are dropped METHOD

Part 5.10: Metals

The BPT law

BPT Part 3.12 (Ripples, Spin, and the Whirling Disks), in Where the Metals Come From: "every metal in the universe was made in a star … So the metals are not the universe's but each galaxy's: a galaxy's gas holds the metals its own stars have returned, and a galaxy that has made few stars cools as the first clumps did." Core-collapse supernovae make most of them; "a metal-free giant of 140 to 260 Suns dies by pair instability: its helium core, 64 to 133 Suns, burns almost wholly to oxygen, silicon and iron".

Its Metals Returned law is M_Z = M_ej·(Z★ + p_Z): "A dying star returns its birth metals and the metals it made", M_ej its birth mass less its remnant, Z★ the metal share of the gas it was born from, p_Z the share of its ejecta that is new metals, "none for a star that dies quietly, about half for a pair-instability giant"; the ejecta "mix first through the gas of the star's own cloud". Its Net Metal Yield, y_Z = M_Z,new/(M★·(1 − R)), is about 0.05 with R ≈ 0.43 for the Kroupa function, "so new metals are about 0.029 of the mass of stars formed". Its game reading sets the game's share: "new metals from a core-collapse supernova at p_Z = 0.17, the one share that makes the game's own population return the yield above". The ruling quoted at stars.js:110 (2026-10-28): "they need their own metals for cooling, and the metals should be generated from supernova".

The established physics

Nomoto, Kobayashi & Tominaga (2013) yields; Vincenzo et al. (2016) net yield; de Avillez & Mac Low (2002) mixing through the cloud; Heger & Woosley (2002) pair-instability metals, 64–133 Suns of metals in stars of 140–260. Critical metallicity Z_crit = 10^(−3.5) Z☉ (Bromm et al. 2001), with Z☉ = 0.019 (Anders & Grevesse 1989).

The game's math

  • Mixing. Each step, each cloud's metals are spread evenly through its gas: Z = Σzm / Σgas, then every body's zm = gas·Z (stars.js:155).
  • Birth. A lot is born with its cloud's Z; it is metal-free if Z < Z_crit (stars.js:176).
  • Death. b.zm += ej·Z★ + made, made = ej·newMetals(m, f) (stars.js:215–216):
newMetals = min(1, clamp(64 + (m − 140)·69/120, 64, 133) / m)    pair instability
          = P_Z_CC = 0.17                                         any other supernova
          = 0                                                      no supernova

P_Z_CC is the share of core-collapse ejecta that is new metals, chosen so that this Kroupa population returns y_Z(1 − R) = 0.05 × 0.576 = 0.029 of the mass of stars formed, its supernovae throwing off 0.168 of it (stars.js:113–117).

  • Takes. takeGas() and the winds remove metals in proportion.
  • Record. S.metals is all new metals made; S.Z the mean of all gas, for the record only; each galaxy cools at its own (Chapter 4, Part 4.14).

Worked case: a 15-Sun star with Z★ = 0.001 dies as a neutron star: ejecta 13.6 Suns; metals returned 13.6 × (0.001 + 0.17) ≈ 2.3 Suns. A metal-free 200-Sun star: 64 + 60 × 69/120 = 98.5 Suns of new metals, 49 % of it.

The method, in plain steps:

each step every cloud's metals are mixed evenly through its gas
a star is born with its cloud's metals; metal-free if below Z_crit
at death the ejecta return their metals plus new ones:
    17% of core-collapse ejecta; for pair instability 64 to 133 Suns

The code:

// public/game-v8.4/stars.js:125 newMetals()
export function newMetals(m, f) {
    if (f.end === 'pisn') return Math.min(1, Math.max(64, Math.min(133, 64 + (m - 140) * 69 / 120)) / m);
    return f.sn ? P_Z_CC : 0;
}

In the game

Metals are not drawn; they are read. The first supernova's banner says the star "has exploded, returning its metals to the gas" (app.js:735). A tap in a galaxy gives the metals of its own gas against the Sun's, "metals X of the Sun's", or "metals none yet" below a hundredth of the Sun's (app.js:3023, 2994), next to its heat mode, which reads 'cold' once its metals pass the critical metallicity, 'H₂' below it while the gas can still cool through molecules, and 'too warm to cool' otherwise (heat.js:73–74). The run record keeps the mean metals of all gas as stars.metals (app.js:2217).

What the player sees of metals is their effect: the first generation, from metal-free clouds, is all massive blue points (Part 5.5); once a cloud's supernovae have enriched it past Z_crit, its next stars come from the Kroupa function and the sky fills with small red points; and a galaxy whose gas holds metals cools faster and keeps forming stars (Chapter 4, Part 4.14).

The scale model

Exact: no scale model. Metals are mass shares.

Where the game and the theory differ

  • Only supernovae make new metals. BPT Part 3.12 names carbon and nitrogen from the winds of dying stars of one to eight Suns and iron from Type Ia supernovae, "a few hundredths of the metals", and its game reading says they "are not yet made"; in the game a white dwarf's progenitor returns its birth metals only (p_Z = 0).

Fixed numbers

Number Where What it is Kind
0.17 P_Z_CC stars.js:118 New metals per mass of core-collapse ejecta PHYSICS (Nomoto et al. 2013; Vincenzo et al. 2016; derived 0.029/0.168)
64, 133, 140, 69/120 newMetals() stars.js:126 Pair-instability metals over 140–260 Suns PHYSICS (Heger & Woosley 2002)
1 stars.js:126, 155 Metal share at most one METHOD

Part 5.11: Winds

The BPT law

BPT Part 3.12, in Winds: Why Small Galaxies Hold Fewer Metals: "Where many explode together their hot bubbles merge and break out of the disk, and a wind of gas, carrying the fresh metals with it, leaves the galaxy at hundreds of kilometers a second … The wind takes the gas and leaves the stars. How much it carries out is set by energy: a share of the supernovae's energy lifts gas out of the galaxy's well." Its Wind Mass Loading is η_w = 2·ε_w·E_SN·n_SN/v_esc², "the gas a galaxy's supernovae blow out, per mass of stars formed", with ε_w about a tenth, E_SN = 10⁵¹ erg and n_SN about one per hundred Suns; "η_w ≈ 4 at an orbit of 60 km/s … 1.5 at 100 km/s and 0.4 at 200". Its Halo Escape Speed is v_esc = v_c·√(2(1 + ln(r_t/r))), about 2.6·v_c for gas in the disk.

Its game reading: "Each supernova in a galaxy drives a wind by Wind Mass Loading, 2ε_w E_SN / v_esc² of gas for each supernova, its v_esc 2.6 times the galaxy's measured circular speed: the gas, with the metals it holds, fresh ones too, is taken from the supernova's cloud and leaves from it at the escape speed, outward from the galaxy's center, too hot to form stars for the galaxy's cooling time; the stars stay." The ruling quoted at stars.js:119 (2026-10-28): "build that".

The established physics

A tenth of a supernova's 10⁵¹ erg left as motion (Thornton et al. 1998); energy-driven winds, η_w ∝ v_c⁻² (Dekel & Silk 1986; Murray, Quataert & Thompson 2005).

The game's math

WIND_PER_SN = 2 · 0.1 · 10⁵¹ erg / (M☉ · c²) = 1.12 × 10⁻⁴      (stars.js:124)
want        = n · WIND_PER_SN / β_esc² · S.sun                    cells of gas blown out by n supernovae
q           = min(1, want / gas in the cloud)

Every gas body of the cloud gives q of its gas and metals. The removed gas from each cloud becomes one wind body (stars.js:242): at its mass-weighted place, moving at the galaxy's velocity plus vesc outward from the galaxy's center, all gas, wind: true, hot until flipNow + hot. β_esc, vesc and hot come from the galaxy (b.gal, set by updateGalaxies(), Chapter 4, Part 4.14, and Chapter 6). Bodies outside any galaxy blow no wind.

Worked case: β_esc = 2.6 × 200 km/s / c ≈ 1.73 × 10⁻³: one supernova blows 1.12 × 10⁻⁴ / 3.0 × 10⁻⁶ ≈ 37 Suns of gas, for an η_w of about 0.4 per 100 Suns of stars (one supernova per hundred Suns), matching BPT Part 3.12's 0.4 at 200 km/s.

The method, in plain steps:

per supernova, the gas blown out of the cloud ← 1.12 × 10⁻⁴ / β_esc² Suns
take it from the cloud's gas bodies in proportion
it leaves as one hot wind body at the galaxy's escape speed, outward from its centre

The code:

// public/game-v8.4/stars.js:124
export const WIND_PER_SN = 2 * 0.1 * 1e51 / (1.98892e33 * 2.99792458e10 ** 2);

// public/game-v8.4/stars.js:217
if (f.sn && b.gal && b.gal.besc > 0) {   /* its wind (Wind Mass Loading) */
    const c = cloud.get(cloudOf(b)), want = n * WIND_PER_SN / (b.gal.besc * b.gal.besc) * S.sun;
    let cg = 0; if (c) for (const o of c.bodies) cg += o.gas > 0 ? o.gas : 0;
    const q = cg > 0 ? Math.min(1, want / cg) : 0;
    if (q > 0) {
        let mw = 0, zw = 0;
        for (const o of c.bodies) { if (!(o.gas > 0)) continue; const tk = o.gas * q, zk = (o.zm || 0) * q; o.gas -= tk; o.zm = Math.max(0, (o.zm || 0) - zk); o.m -= tk; mw += tk; zw += zk; }
        c.gas = Math.max(0, c.gas - mw); c.zm = Math.max(0, (c.zm || 0) - zw);
        const G0 = b.gal, dr = matter.wrapR(b.r - G0.r + matter.rows / 2) - matter.rows / 2, dc = matter.wrapC(b.c - G0.c + matter.cols / 2) - matter.cols / 2, d = Math.hypot(dr, dc);
        const ur = d > 1e-3 ? dr / d : Math.cos(b.seed || 1), uc = d > 1e-3 ? dc / d : Math.sin(b.seed || 1), k = cloudOf(b);
        let wnd = winds.get(k); if (!wnd) winds.set(k, wnd = { m: 0, zm: 0, r: 0, c: 0, vr: 0, vc: 0, hot: 0 });
        wnd.r += mw * b.r; wnd.c += mw * b.c; wnd.vr += mw * ((G0.vr || 0) + ur * G0.vesc); wnd.vc += mw * ((G0.vc || 0) + uc * G0.vesc);
        wnd.m += mw; wnd.zm += zw; wnd.hot = Math.max(wnd.hot, G0.hot || 0);
    }

In the game

A wind is gas, so it is drawn as gas: a new body of faint haze in the data's color (scene3d.js:781–782) that leaves the supernova's cloud outward from its galaxy's center at the escape speed, while the stars it came from stay put. Being hot, it forms no stars until its heat has passed; then, wherever it has come to, in the gas between the galaxies or back in a galaxy, it is ordinary gas again. Since the gas blown out per supernova goes as 1/β_esc², a galaxy with a low escape speed loses far more of its gas this way than a large one. No HUD line or banner names a wind; the game keeps the wind's total mass and metals on the star tallies (S.windMass, S.windZ, stars.js:242) but does not show them.

The scale model

The wind's mass is in the level's Suns; its speed is the galaxy's escape speed in the game's cells a flip; its heating time a share of the life.

Fixed numbers

Number Where What it is Kind
2, 0.1, 10⁵¹ WIND_PER_SN stars.js:124 2·ε_w·E_SN PHYSICS (Thornton et al. 1998; BPT Part 3.12)
1.98892e33, 2.99792458e10 WIND_PER_SN stars.js:124 M☉ (g) and c (cm/s) PHYSICS
1 stars.js:220 At most all the cloud's gas METHOD
10⁻³ stars.js:226 Distance below which a random direction is used METHOD
10⁻⁹ stars.js:242 Least wind mass kept METHOD
2³¹ stars.js:242 Fallback seed range METHOD

Part 5.12: Feedback

The BPT law

BPT Part 3.14 (Galaxies: the Wells and the Stars Around Them), in Feedback: What Keeps Galaxies Blue: "Without feedback a galaxy forms its stars too fast, too early, and too many: gas cools, falls in and turns into stars until none is left, and every galaxy ends red and dead … Two sources of energy push back." Its Supernova Momentum, p_sn = p◇·(n_H/n◇)^(−2/17), p◇ ≈ 2.8 × 10⁵ Suns at 1 km/s, n◇ one atom per cubic centimeter, is "the momentum one supernova drives into the gas around it"; it "hardly depends on the gas … so every supernova delivers about the same push". Its Quasar Feedback Energy, E_fb = ε_f·L·Δt, ε_f ≈ 0.05, is "the share of a feeding well's light that stirs its galaxy", L the accretion luminosity, a tenth of the food's rest energy.

In Binary Pulse Theory, the Part says, "feedback is the data of a star or a well's food returned to the field and pushed back out before the wells take what is left". And it states how the game does it: "The simulation gives each supernova an outward push on the gas round it and keeps that gas too hot to form stars for a while, and each well feeding past a hundredth of its Eddington rate a push and heating in proportion; the reach of both is scaled to what the device can compute, so their effect is seen in the universes deep enough to have stars, from about level 23." The ruling quoted at app.js:748 (2026-10-27): "we need supernova and quasar feedback, ideally this can scale with the users processing power".

The established physics

Kim & Ostriker (2015) for the supernova momentum; Di Matteo, Springel & Hernquist (2005) for ε_f; accretion luminosity a tenth of the rest energy; Dekel & Silk (1986) for blowing a dwarf's gas out; the Salpeter time, about 45 Myr (BPT Part 6.10 gives ≈ 5 × 10⁷ yr).

The game's math

SALPETER_SHARE = 45 × 10⁶ / 11.0 × 10⁹ ≈ 1/244 (app.js:746): the Salpeter time as a share of the life. FB_HOT = 2 flips (app.js:757).

applyFeedback(sev) app.js:758, once per sub-step after stepStars():

strong = matterBudget() ≥ 30000;   busy = perf.lastBusy > 85 (%)
cap    = max(4, (strong ? 96 : 24) >> (busy ? 1 : 0))        supernova events handled this sub-step
reach  = (strong ? 3 : 2) · (busy ? 0.75 : 1)                 cells
sk     = (matter.cloud or 8) / 8                              Chapter 4, Part 4.15

push(r, c, R, dv0, energy, hot): R ← R·sk, hot ← hot·sk; every body within R cells; M their total mass;

v_esc = √(2·G·gk·M / max(0.5, R))
dv    = min(1.5·v_esc, 0.05·c, energy ? √(2·dv0/M) : dv0/M)
each body: v += r̂ · dv · (1 − 0.5·d/R);   hotUntil = max(hotUntil, now + hot)
  • Supernovae (the first cap of this sub-step's events): p = 0.93·n·S.sun·c, momentum (p_sn = 2.8 × 10⁵ Suns·km/s over light's 3 × 10⁵ km/s is 0.93 Suns·c), reach R, hot FB_HOT.
  • Feeding wells (every non-stellar, non-site well with Eddington ratio ≥ 0.01): Ṁ = (edd / (SALPETER_SHARE·life))·M_f, M_f the heart's own mass in cells, E = 0.005·Ṁ·c² (ε_f × the tenth radiated), reach R·(1 + 2·min(1, edd)), hot FB_HOT·(1 + 3·min(1, edd)).

Stars read hotUntil: heated gas forms none until it cools (Part 5.7).

Worked case, desktop, level 28: S.sun ≈ 3.8 cells, c = 128: one supernova's p ≈ 0.93 × 3.8 × 128 ≈ 450 cell-masses·cells a flip; reach 2 cells; the push is at most 0.05 × 128 = 6.4 cells a flip. On a phone sk = 0.25: reach 0.5 cells and heating 0.5 flips.

The method, in plain steps:

each sub-step, after the stars:
    each supernova (up to a cap this device can afford): a push of momentum 0.93 · n · Sun · c
    each feeding well (Eddington ratio ≥ 0.01): energy 0.005 · Ṁ · c², a wider and hotter push
    a push: every body within R cells moves outward, at most 0.05 c and 1.5 times escape,
            and stays hot (no stars) for a while

The code:

// public/game-v8.4/app.js:761 applyFeedback()
function applyFeedback(sev) {
    if (!matter || !matter.ok || !matter.bodies.length || !matter.stars || !(matter.stars.sun > 0)) return;
    const light = matter.light || lightCells(), sun = matter.stars.sun, now = pulseCounter + subDone, bins = matter.binBodies(), B = matter.B;
    const strong = matterBudget() >= 30000, busy = perf.lastBusy > 85, cap = Math.max(4, (strong ? 96 : 24) >> (busy ? 1 : 0)), reach = (strong ? 3 : 2) * (busy ? 0.75 : 1);
    const wd = (a, b, n) => { let d = a - b; if (d > n / 2) d -= n; if (d < -n / 2) d += n; return d; };
    const sk = (matter.cloud || 8) / 8;   /* a scale model's cells are wider and its flips longer by the same share (2026-10-29): reach and heat follow it, speeds stay */
    const push = (r, c, R, dv0, energy, hot) => {
        R *= sk; hot *= sk;
        const near = matter.bodiesNear(bins, r, c, Math.ceil(R / B)); let M = 0; const hit = [];
        for (const b of near) { const dr = wd(b.r, r, rows), dc = wd(b.c, c, cols), d = Math.hypot(dr, dc); if (d <= R) { hit.push([b, dr, dc, d]); M += b.m || 0; } }
        if (!(M > 0)) return;
        /* no faster than 1.5 escape speeds from the mass round it: a dwarf's gas is blown out, a large galaxy's stirred (Dekel & Silk
           1986); the game's units are not km/s, so the full momentum alone would fling a small body across the torus */
        const Gk = (matter.G || 0) * (matter.gk || 1), vesc = Math.sqrt(2 * Gk * M / Math.max(0.5, R));
        const dv = Math.min(1.5 * vesc, 0.05 * light, energy ? Math.sqrt(2 * dv0 / M) : dv0 / M);
        for (const [b, dr, dc, d] of hit) {
            const ur = d > 1e-3 ? dr / d : Math.cos(b.seed || 1), uc = d > 1e-3 ? dc / d : Math.sin(b.seed || 1), f = 1 - 0.5 * d / R;
            b.vr = (b.vr || 0) + ur * dv * f; b.vc = (b.vc || 0) + uc * dv * f; b.hotUntil = Math.max(b.hotUntil || 0, now + hot);
        }
    };
    let k = 0;
    for (const e of sev.sn || []) { if (k++ >= cap) break; push(e.r, e.c, reach, 0.93 * (e.n || 1) * sun * light, false, FB_HOT); }
    if (rings) {
        const life = Math.max(1, 2 * uni.rupturePulses);
        for (const w of rings.sources) {
            if (w.stellar || w.site || !((w.edd || 0) >= 0.01)) continue;
            const kR = realPerCell(), Mf = w.ownSuns > 0 && kR > 0 ? w.ownSuns / kR : Math.max(1, w.mass || 1);   /* a heart's own mass, in the game's cells */
            const mdot = (w.edd / (SALPETER_SHARE * life)) * Mf, E = 0.005 * mdot * light * light;
            push(w.r, w.c, reach * (1 + 2 * Math.min(1, w.edd)), E, true, FB_HOT * (1 + 3 * Math.min(1, w.edd)));
        }
    }
}

In the game

Feedback has no flash of its own; it is seen in the gas. Round each supernova flash (Part 5.9) the bodies within its reach are pushed outward, and their gas forms no new stars for about two flips. As the code's comment puts it (app.js:769), a dwarf's gas is blown out, a large galaxy's stirred.

The wells' half shows in the galaxy readout. A tap in a galaxy whose well feeds at a hundredth of its Eddington rate or more adds " · a Seyfert", from a tenth " · a quasar" (app.js:3048), and a starless cloud " · feeding the well" (app.js:3032); those are the wells whose feedback pushes and heats the gas around them, further and longer the faster they feed. The quasar's own drawing, a blazing core with two jets, is the galaxies' (Chapter 6).

The device enters here. The HUD's Speed line (index.php:82) shows "how busy the page is (above about 80% it starts to stutter)"; above 85 % busy the game handles half as many supernova events a sub-step and shortens their reach by a quarter.

The scale model

The reach and heating follow the cloud share (sk); the momentum is in the level's Suns and the game's light; the push is bounded by light and the escape speed because the game's units are not km/s (app.js:769–770).

Where the game and the theory differ

  • BPT Part 3.14's Supernova Momentum falls with the gas density as (n_H/n◇)^(−2/17); the game gives every supernova the reference momentum p◇, with no density factor.
  • The strong branch is dead. matterBudget() returns at most 16,000 since 2026-10-27 (Chapter 4, Part 4.5), so strong is never true. Every device runs with 24 events a sub-step (12 when busy) and a reach of 2 cells (1.5 when busy). The rule "96 or 24 events, reach 3 or 2, by device" in the code and its comment (app.js:755) is what the code says, not what it does. The threshold of 30,000 belongs to the older budget of up to 60,000 that the stale comment at app.js:1151–1154 still describes.
  • BPT Part 3.14 scales feedback "to what the device can compute"; in the code that means the busy reading, so two devices can apply different feedback to the same universe, and supernovae past the first 24 (or 12) of a sub-step push nothing.
  • The push is bounded at 1.5 escape speeds and 5 % of light (app.js:772); BPT states neither bound.

Fixed numbers

Number Where What it is Kind
45e6, 11.0e9 SALPETER_SHARE app.js:746 Salpeter time over the life PHYSICS (Salpeter time) and BPT (11.0 Gyr life, Chapter 1 Part D)
2 FB_HOT app.js:757 Flips heated gas stays hot METHOD (unsourced)
30000 app.js:761 Body budget that makes a device strong (unreachable) CAP (device class; dead)
96, 24 app.js:761 Supernova events handled per sub-step CAP
85 app.js:761 Busy percent that halves the work CAP
1 (>> 1) app.js:761 Halving when busy CAP
4 app.js:761 Least events handled CAP (floor)
3, 2 app.js:761 Reach, cells, strong and ordinary CAP (device class)
0.75 app.js:761 Reach when busy CAP
8 app.js:763 sk = cloud/8 METHOD (Chapter 4, Part 4.15)
0.5 app.js:771 Floor on R in the escape speed, cells METHOD
1.5 app.js:772 Push at most 1.5 escape speeds CAP (stated as a guard, Dekel & Silk 1986 cited qualitatively)
0.05 app.js:772 Push at most 5 % of light CAP
0.5 app.js:774 Push falls to half at the reach METHOD
10⁻³ app.js:774 Distance below which a random direction is used METHOD
0.93 app.js:779 p_sn in Suns·c PHYSICS (Kim & Ostriker 2015)
0.01 app.js:783 Eddington ratio for feedback BPT (Part 3.14, a hundredth of Eddington)
0.005 app.js:785 ε_f × ε_r = 0.05 × 0.1 PHYSICS (Di Matteo, Springel & Hernquist 2005)
2, 3 app.js:786 Reach and heating grow with the Eddington ratio METHOD (unsourced)
2 (×) app.js:781 Flips per Tempo in the life BPT (Part 1.10)

Part 5.13: Stellar Null Wells

The BPT law

BPT Part 2.9 states the Stellar Null Well Condition, r▣ = 2·G·M▣/c²: "A dead core with M▣ > M_TOV ≈ 2.3 M☉ collapses inside its own horizon r▣." "This is the same horizon, and the same Null Well, as every other in the book; only the road to it is different. A harmonic collapse makes a Null Well from overflowing data at a Nova; a star makes one from matter that has burned through its fuel. Stellar Null Wells are born small, 5 – 50 Suns, and late, a few million years after the first stars. They grow by accretion and by merging, and with nothing left to eat they evaporate." Its Census of Null Wells makes them "the bulk" of the Progeny Count Law's 2^(L/3). BPT Part 6.10 gives the Stellar Null Well Fraction, f▣ = N_well/N⊛ ≈ 1.3–1.8 × 10⁻³ for the Kroupa function, "about one star in six hundred".

BPT Part 3.14 (Proto Wells: Where Wells Will Form) ties them to the sites: away from direct collapse "the gas cools, breaks into stars, and the site waits for them: its well is born when its first heavy star dies and the remnant sinks to its heart"; in the game, "its first stellar well born within its reach sinks to it (drawn at once) and the two merge into its heart". The ruling of 2026-10-29: "we should see the stars go supernova to create the wells".

The established physics

As Part 5.9: Tolman–Oppenheimer–Volkoff limit; Woosley, Heger & Weaver (2002).

The game's math

stepMatterPost() app.js:678–686, for each well reported by stepStars() (Part 5.9):

ids = registerWells([[r, c]], [mass], pulseCounter, starMult)     a new physical well, weight starMult
wellsFromStars += starMult
the well is marked stellar, ownSuns = rem
if a waiting site's halo holds it: fillSite(site, 'remnant', ...)    the site becomes its galaxy's heart
message for the first three

registerWells() app.js:1509 adds weight to wellsStand, the count of real wells the drawn ones stand for. Stellar wells are excluded from galaxies (!w.stellar, app.js:3132) and from quasar feedback (app.js:783). Their growth, mergers and evaporation are documented with the wells in Chapter 3 (Parts 3.5, 3.7 and 3.10).

Worked case: of the 41,700 stars a level-28 universe's law gives, the code's Kroupa sampler makes about 0.086 % of 25 Suns or more (Part 5.5), about 36 stars that end as wells. Their lives are under 0.02 Tempos against a sub-step of 0.125, so each stellar well appears within a sub-step of its star's birth.

The method, in plain steps:

each Stellar Null Well a dying star leaves:
    register it as a physical well that stands for starMult real ones
    mark it stellar, with its own Suns
    if it is inside a waiting site, it fills the site as its heart

The code:

// public/game-v8.4/app.js:678
for (const w of sev.wells) {
    const ids = registerWells([[w.r, w.c]], [w.mass], pulseCounter, matter.starMult || 1); wellsFromStars += matter.starMult || 1;
    const rec = ids && ids.length ? lifeOf('W' + ids[0]) : null;
    if (rec) rec.how = `from a dying star of ${Math.round(w.from)} Suns: a Stellar Null Well of ${w.suns.toFixed(1)} Suns`;
    { const src = ids && ids.length && rings ? rings.sources.find(x => x.id === ids[0]) : null; if (src) { src.stellar = true; src.ownSuns = w.rem || w.suns; const site = siteNear(src.r, src.c); if (site) fillSite(site, 'remnant', src.ownSuns, src.mass, src, `its first dying star, of ${Math.round(w.from)} Suns: the remnant sank to its heart`); } }
    const nS = (matter.stars && matter.stars.bh) || 0;
    if (nS <= 3) showToast({ kind: 'pinpoint', head: 'Stellar Null Well', title: `A star of ${Math.round(w.from)} Suns has died and its core collapsed into a well of ${w.suns.toFixed(1)} Suns · born small, it will feed, merge and in the end evaporate${nS === 3 ? ' · further ones are counted on the HUD' : ''}` });

In the game

A Stellar Null Well is born in the same moment as its star's supernova flash (Part 5.9). The first three are announced with a banner headed Stellar Null Well: "A star of N Suns has died and its core collapsed into a well of X Suns · born small, it will feed, merge and in the end evaporate", the third adding " · further ones are counted on the HUD" (app.js:684). After that the Stars line's "stellar wells n" counts them, and the HUD's Wells line counts them among all wells (app.js:2148).

Each well's life record says how it was born: "from a dying star of N Suns: a Stellar Null Well of X Suns" (app.js:681). When the remnant falls inside a waiting site, the site's record adds "its well was born by its first dying star, of N Suns: the remnant sank to its heart" (app.js:682, 1448), and from then the site is its galaxy's heart, drawn and tapped as the galaxies of Chapter 6. The scene's list of wells is refreshed at once (app.js:686); which wells are drawn is Chapter 3's.

At the end the Null wells counted box notes "… from dying stars" (app.js:2813) and the Stars born box "… stellar wells" (app.js:2818).

The scale model

Each drawn stellar well stands for starMult real ones; at level 202 each is about 3 × 10¹⁷.

Where the game and the theory differ

  • Dying lots undercount their wells. A lot of n stars that ends as wells reports min(n, 4) wells (Part 5.9), each standing for starMult, so wellsStand and wellsFromStars gain min(n, 4)·starMult while the tally S.bh gains n (and the end card's stellar wells show S.bh·starMult). For n > 4 the census of wells and the count of stellar wells disagree by n/4. The mass is right (each reported well carries n/min(n, 4) of the remnants).

Fixed numbers

Number Where What it is Kind
3 app.js:684 Stellar-well messages shown RECORD
4096 app.js:667 Supernova flash size DISPLAY
64 app.js:668 Planetary nebula flash size DISPLAY

Part 5.14: Star Tallies, Readouts and Well-Life Samples

The BPT law

BPT does not state this; it is the game's record. It serves BPT Part 2.9's road and BPT Part 2.10's Stars of a Universe: it reports the counts of the road (stars by class, giants, white dwarfs, neutron stars, supernovae, stellar wells) in real numbers for the level, each drawn star for starMult, so the player can set what the universe made beside N★ = 925·(m_P/m_p). The well-life samples serve BPT Part 3.14's game reading of the wells: "Each well's life, its kind, rank, peak mass, share and child's level, and the census, go on the universe's record."

The established physics

None: a game method.

The game's math

  • Tallies. At the end of stepStars() (stars.js:245–249): S.byType counts every lot's n by class (alive or remnant) and giants alive; S.alive the living; S.gasMass and S.Z the gas and its mean metals.
  • HUD. starLine(S, mult) stars.js:254: "N shining" (alive less brown dwarfs), O to M, brown dwarfs, giants, white dwarfs, neutron stars, supernovae, stellar wells, each × mult; numbers of 10¹⁵ or more are shown as a × 10ⁿ (a phone cannot show 21 digits, 2026-10-29).
  • End card. trueStars('formed') app.js:2751 is (formed − brown dwarfs)·starMult; realStars(k) app.js:2749 is S[k]·starMult; the card notes the drawn count when starMult > 1.5 (app.js:2818).
  • First events. starToasts() app.js:731: first stars (with the Sun in cells), first supernova, white dwarf, neutron star and pair-instability supernova, once each.
  • Well lives. lifeSample() app.js:920, every 4 flips (2 Pulses, pulseCounter % 4, app.js:4588), every 4 ticks of the decay (app.js:2678) and at the End of the Outward Expansion and the decay (app.js:2547, 2552, 2678): records each living well's mass and place, its peak, and the universe's most matter so far (uni.matterMax); when a well's record passes LIFE_SAMPLES = 48 points it is thinned to the first, every odd one and the last (app.js:923).

The method, in plain steps:

tally every lot by class: alive, giants, remnants, supernovae, stellar wells
the HUD: "N shining" (stars alive, brown dwarfs aside), each count × starMult
every 4 flips: sample each living well's mass and place for its life record (48 kept)

The code:

// public/game-v8.4/stars.js:254 starLine()
export function starLine(S, mult = 1) {
    if (!S || S.sun === null) return 'none yet · the gas is still too warm to collapse';
    const big = (x) => { x = Math.round(x); if (x < 1e15) return x.toLocaleString(); const e = Math.floor(Math.log10(x)), sup = String(e).replace(/./g, (d) => '⁰¹²³⁴⁵⁶⁷⁸⁹'[+d]); return `${(x / 10 ** e).toFixed(2)} × 10${sup}`; };   /* a phone cannot show 21 digits (2026-10-29) */
    const t = S.byType || {}, f = (k) => big((t[k] || 0) * mult);   /* mult: stars each drawn star stands for (8.2) */
    const g = (v) => big((v || 0) * mult);
    return `${g(S.alive - (t.BD || 0))} shining · O ${f('O')} B ${f('B')} A ${f('A')} F ${f('F')} G ${f('G')} K ${f('K')} M ${f('M')} · brown dwarfs ${f('BD')} · giants ${f('giants')} · white dwarfs ${f('WD')} · neutron stars ${f('NS')} · supernovae ${g(S.sn)} · stellar wells ${g(S.bh)}`;
}

In the game

The Stars line sits among the HUD's key lines (index.php:86), its tooltip "Stars formed from the gas past its Jeans mass, by type, with their remnants (book Parts 2.9 and 6.10)". It moves through "none before the Physical Nova", "none yet · the gas is still too warm to collapse", and then the running line of Part 5.4, "N shining · O n B n A n F n G n K n M n · brown dwarfs n · …", every count in real stars. Deep levels read in powers of ten, "1.20 × 10²²" and the like (stars.js:256).

At the end of the run the result card's Stars born box gives the real count of stars made, with "… brown dwarfs besides · … supernovae · … white dwarfs · … neutron stars · … stellar wells" and, for a scale model, "… drawn, each for …" (app.js:2818). The run record's stars object (app.js:2217) keeps each (starMult), formed, brown dwarfs, alive, supernovae, pair-instability supernovae, white dwarfs, neutron stars, stellar wells, counts by type and mean metals. The well-life samples are not drawn; they feed each well's life record and the census of Chapter 3.

The scale model

The counts are real counts by starMult; the samples are of drawn wells.

Fixed numbers

Number Where What it is Kind
10¹⁵ starLine() stars.js:256 Counts shown in scientific form from here DISPLAY
1.5 app.js:2818 starMult above which the drawn count is noted DISPLAY
48 LIFE_SAMPLES app.js:888 Points kept per well's life record RECORD
4 app.js:2678, 4551 Sample every 4 flips (and every 4 decay ticks) RECORD
2 app.js:923 Thinning keeps every second point RECORD

Part 5.15: The Stars Run On Through the Decay (v8.6)

The BPT law

BPT Part 3.10, After the Outward Expansion: the Pulsing Decay: "The End of the Outward Expansion closes the census; it does not end the universe, and it does not end its wells' making. ... First the stars run on: they go on forming from the gas that is left and dying for about 10¹⁴ years, the heavy ones still going supernova and leaving neutron stars and new stellar wells, until the last, the faintest red dwarfs, burn out (Adams & Laughlin, 1997)." The author, 15 November 2026: "there are still new wells formed after that point right? there are still stars that nova etc?"

The established physics

  • Star formation goes on long past today's epoch, falling as the gas is used: the stelliferous era lasts until about 10¹⁴ years, when the last red dwarfs, living about 10¹³ years, burn out (Adams & Laughlin 1997).
  • Every star above about eight Suns ends as a supernova, leaving a neutron star or, past the neutron-star limit, a black hole; lower-mass stars leave white dwarfs inside planetary nebulae.

The game's math

Until 15 November 2026 the star clock ran only in the life: stepStars() (stars.js) is called after each matter step (stepMatterPostCore, app.js), and the decay (stepDecay, app.js) moved the matter into the wells without it, so in the decay nothing formed, nothing died, no supernova flashed and no stellar well was born.

In v8.6 the decay's matter stage calls the same stepStars() each tick, on the decay's own clock: the tick's time step is dtau = d.tau·(2^(1/6) − 1) flips, d.tau the flips since the End of the Outward Expansion (it grows by 2^(1/6) a tick, DECAY_GROW), and the stars' clock is (flips from the big bang to the end + d.tau)/2 Tempos, as in the life. With the same Sun and the same lifetimes, tauSun·m^(−2.5), a lot dies when its life is spent; the supernovae and planetary nebulae flash (merges), heat their gas (applyFeedback), and the wells the dying stars leave are registered by registerStellarWells(), the life's own code, now one function the life and the decay share. The gas left forms stars at the same law, its time step the tick's. The decay's banner counts them: "stars still dying: N supernovae and M new stellar wells since the outward expansion ended". When the matter is all in the wells, the stars go with it and the wells' stage begins as before.

The method, in plain steps:

each decay tick, while matter is left:
    the matter moves, falls into the wells, merges (as before)
    the stars step by the tick's time, dtau = d.tau · (2^(1/6) − 1) flips, their clock at the end of the life + d.tau
        new stars from the gas left; each lot dies when its life is spent
        supernovae and nebulae flash and heat their gas; the heaviest leave new stellar wells, registered as in the life

Fixed numbers

Number Where What it is Kind
2^(1/6) DECAY_GROW app.js the decay clock's growth a tick METHOD (as before)
dtau app.js stepDecay() the stars' time step in the decay, the clock's growth that tick METHOD