PulseCore

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

Chapter 10

The Master Script

This chapter is the game in order. Chapters 1 to 9 take the game law by law; this one takes it moment by moment, the way a player meets it: the page opens, the player paints a pinpoint and presses Start, the Pulsecore fills and breaks open in its two novas, the universe lives through its harmonics to its final well, returns to the Source, and either seeds a child or decays into nothing. Every numbered step is one thing the game does, said plainly first, with the code that does it under each stage.

The code is Alpha v8.4, live at /game/. It is quoted from public/game-v8.4/, and the page itself from game/v8.4/index.php. Quoted lines are trimmed with … where a line carries drawing or bookkeeping that does not change the step; nothing is reworded. Where a step stands on a law of Binary Pulse Theory, the law is named and the Part of this book that treats it is given.

Two words are used throughout. A flip is one pass of the cell rule, one Rhythm: every pulsing cell turns 0 → 1 or 1 → 0. A Tempo is two flips, the whole pulse 0 → 1 → 0, and the laws count Tempos. The game's own counter, pulseCounter, counts flips.

Part 10.1: The Page Loads

  1. The page opens and holds a loading screen until the first frame is drawn.
  2. The settings take their defaults.
    • 2.1 The level is 28: the band where most of a lineage's children keep their stars.
    • 2.2 The genesis channel is set to Kerr–Kerr, our own origin, two spins of 0.998.
    • 2.3 The spin axis is 30°, the anisotropy 0.35, the heritage f₀ ours, the mass class 1.
    • 2.4 Grid lines on; phase colours, sound and centring off.
    • 2.5 The pace is paced: the Pulsecore's filling plays in about 20 seconds and the universe's life in about 100, at every level.
  3. The 3D scene is built (Scene3D, scene3d.js). If the device cannot draw it, the game falls back to the flat 2D field.
  4. The universe is described from its level (recomputeUniverse(), Part 1.1): the level's clock, constants, life and progeny (describeUniverse(), Parts 1.3 to 1.9), and the scale model: a level deeper than 6 (4 on a phone) is drawn at the model level, the physics staying at the true one (Part 1.10).
  5. The field takes its size, 4 · 2^L cells a side at the model level (the Local Cell Count, Part 1.8): 256 × 256 on a desktop, 64 × 64 on a phone.
  6. The epoch is set to "pre": a Pulsecore waiting for its information.
  7. A random genesis is drawn (randomizeGenesis()): each parent's spin between 0 and 0.998, a mass ratio between 0.2 and 1, a merger angle between 0° and 90°, an axis between 0° and 360°, the poles at centre. The channel becomes "custom", so the Kerr–Kerr default of step 2.2 is replaced at once.
  8. A random pinpoint is painted (randomizeGrid() then bakeRandomChild()): a smooth field of one parent's colours, or of two parents' when the mass ratio is above 0.05, every cell a pulser in phase 0 or 1. The state line reads "the child of one parent · press Start" (or of two).
  9. The loading screen lifts.

The method, in plain steps:

on page load:
    set the level to 28 and the pace to "paced"
    describe the universe from its level           (clock, constants, life, progeny)
    size the field: 4 · 2^Lm cells a side, Lm = min(L, 6 desktop | 4 phone)
    epoch ← "pre"
    draw a random genesis (spins, mass ratio, angle, axis)
    paint a random pinpoint from that genesis

The code:

// public/game-v8.4/app.js:5444 init()
gridSize = isMobile ? 64 : 256;
if (uLevel) { uLevel.value = '28'; … }
if (uChannel) { uChannel.value = 'kerrkerr'; applyChannel('kerrkerr'); }
…
recomputeUniverse();
…
setEpoch('pre');
randomizeGrid();
if (!(… /[?&]packet=/.test(location.search))) { randomizeGenesis(); bakeRandomChild(); }

// public/game-v8.4/app.js:4281 the model level
function MODEL_LEVEL() { return isPhone() ? 4 : 6; }

// public/game-v8.4/app.js:2031 recomputeUniverse(), the field's size
const side = Math.max(4, Math.min(1024, U.viewSide(uni.Lm)));

// public/game-v8.4/universe.js:232
export function viewSide(N) { return 4 * Math.pow(2, N); }

Part 10.2: The Player Sets the Genesis

Before Start the player may change anything; nothing has run yet.

  1. Paint the pinpoint. A press on the field or the sphere paints a cell (paintCell()); the brush colour is the data's colour, and a cell born later of lit neighbours takes the first lit neighbour's colour, so colour is the data's lineage (engine.js).
  2. Choose a level (Universe & Genesis → Level L). The slider runs from 0 to 202, our own universe's level; the box beside it takes any deeper level. Each change re-describes the universe (Part 10.1, step 4) and resizes the field.
  3. Choose a genesis: the parents' spins a₁ and a₂, their mass ratio q, the merger angle θ, the axis and tilt, or a named channel. These set the universe's inherited spin a_f and its compression ⟪C⟫ (Part 1.5). Below level 3 no universe carries spin (Spinless Early Lineage): the spin rows hide and a_f is 0.
  4. Or reset: Reset draws a new random genesis and pinpoint as on load; a saved pattern or a Universe Packet can be opened instead (Part 1.14).
  5. Aim the cue (3D view): before Start the player can pull the cue on the sphere to set the spin's direction (applyCue).

The method, in plain steps:

while the epoch is "pre":
    a press paints a cell in the brush colour
    a change of level or genesis → describe the universe again, resize the field
    below level 3 the spin is held at 0

The code:

// public/game-v8.4/app.js:2031 recomputeUniverse()
if (g.L < U.FIRST_FORK_LEVEL) { g.a1 = 0; g.a2 = 0; g.thetaDeg = 0; g.aniso = 0; if (g.L === 0) g.q = 0; }
…
uni = U.describeUniverse(g);

// public/game-v8.4/universe.js:282 describeUniverse()
const a_f = L < FIRST_FORK_LEVEL ? 0 : inheritedSpin({ a1, a2, q, thetaDeg });
const C = compressionFactor(a_f, kappa);

Part 10.3: Start

  1. The player presses Start (start()).
  2. The core spins up to its full rate.
  3. The genesis is locked: the panel can no longer change it, and the universe is saved as a new record.
  4. The epoch becomes "singularity": the Pulsecore is now a pinpoint filling with data. A Zinf genesis of one lit cell at level 0 is collected as a find.
  5. The pinpoint is sealed: the painted field is kept as frame 0 (genesisFrame0), any brush ripple still running is dropped, and the whole genesis is written into a Universe Packet so the run can be replayed exactly.
  6. The loop starts at the chosen pace (startLoop()). In the paced mode a tick comes every 50 ms; the filling is paced to about 400 ticks and the life to about 2,000, and after each step the page waits as long as the step took, so the physics never takes more than half the time and the scene draws between.
  7. The first flip only starts the clock: the counter goes from 0 to 1, the state line reads "Pulsing", and nothing in the field changes yet.

The method, in plain steps:

on Start:
    lock the genesis, save the universe
    epoch ← "singularity"
    frame 0 ← the painted field
    repeat every tick (paced: 50 ms):
        run as many steps as the pace owes, never more than half the wall time

The code:

// public/game-v8.4/app.js:4801 start()
lockGenesis(true);
if (typeof universeId !== 'number') saveUniverse('new', genesisPayload());
if (epoch === 'pre') {
    setEpoch('singularity');
    …
}
doStart();   // genesisFrame0 = copyGrid(grid); pulses = []; … running = true; … startLoop();

// public/game-v8.4/app.js:4850 startLoop(), the paced mode
const TICKS_FILL = 400, TICKS_LIFE = 2000;
let rate = 1;
if (epoch === 'singularity' && uni) rate = Math.max(1, novaRhythm(uni.Lm) / TICKS_FILL);   // 8.5: the fill's 2^(Lm+1) flips, at most one a tick
else if (epoch === 'universe' && uni) rate = Math.min(4, (2 * lifeEndTempo()) / TICKS_LIFE);
owed += rate;
…
finally { skipDraw = false; nextAt = performance.now() + (performance.now() - tNow); }

Part 10.4: Every Flip: The Cell Rule

Every step of the run, before the Pulsecore's novas and after them, begins with the same rule on the field (stepField(), engine.js; Part 2.2). It has three parts and no thresholds to set.

  1. Perpetual reversal. Every pulser flips, 0 → 1 or 1 → 0. Once a cell has pulsed it never stops (Information-Driven Perpetuation).
  2. Bifurcation. A null cell, one that has never pulsed, gathers exposure from its lit neighbours, one eighth of a pulse for each lit neighbour each flip (weighted by direction when the universe spins). When its exposure reaches one whole pulse it bifurcates, ∅ → (0 ⥂ 1), and lights (Law of Binary Emergence). Exposure is never lost.
  3. Fold. A pulser whose eight neighbours are all pulsers in its own phase carries no contrast: it folds back to null (The First Fold). What folds is counted into the void; after the Data Nova a fold can seed a well.
  4. The neighbourhood wraps, because the field is the skin of a torus.
  5. The step is kept for Back: the last fields are stored so the player can step backward, up to 200 steps on a small field and fewer on a large one (about 4 million cells in all; Part 2.13).

The method, in plain steps:

for every cell:
    if it pulses:
        if all eight neighbours pulse in its phase → fold it to null
        else flip it
    else (null):
        exposure += (lit neighbours, spin-weighted) / 8
        if exposure ≥ 1 → it lights and starts pulsing, taking a lit neighbour's colour

The code:

// public/game-v8.4/engine.js:53 stepField()
if (pulser[r][c]) {
    pulsers++;
    // the fold: eight pulser neighbours, all in this cell's phase
    let same = 0;
    for (let k = 0; k < 8; k++) {
        const rr = (r + OFFS[k][0] + rows) % rows, cc = (c + OFFS[k][1] + cols) % cols;
        if (pulser[rr][cc] && lit[rr][cc] === lit[r][c]) same++; else break;
    }
    if (same === 8) { lr[c] = 0; pr[c] = 0; exposure[r][c] = 0; folded.push([r, c]); continue; }
    lr[c] = lit[r][c] ? 0 : 1; pr[c] = 1; flips++;
} else {
    const n = exposureAt(lit, r, c, rows, cols, weights);
    if (n > 0) exposure[r][c] += n / 8;
    if (exposure[r][c] >= 1) {
        lr[c] = 1; pr[c] = 1; exposure[r][c] = 0; born.push([r, c]); flips++;
        …
    } else { lr[c] = 0; pr[c] = 0; }
}

Part 10.5: The Pulsecore Fills

While the epoch is "singularity", each flip runs the cell rule on the Pulsecore's skin and then moves the data inside it (stepPinpoint(), Parts 2.4 and 2.5).

  1. The data within grows as a square. Its reach widens two cells across every Rhythm, so after r Rhythms the Pulsecore holds N = (2r)² bits (dataWithin()), and the first Tempo fills 4 × 4 = 16 cells, the Zinf; the first frame only starts the clock. The Pulse counter climbs ↑ with the fill to 2^Lm at the Data Nova, the universe's 1 (the Pulse Mirror).
  2. The data moves inside at light speed, a point for each Zinf bit up to 8,000 points, bouncing off the Bifold, the Pulsecore's skin, about twice a flip.
  3. The skin turns with the spin: its equator moves v∂ of light speed, v∂·π radians a flip, dragging the data with it.
  4. Every bit carries its null. Before the Null Nova the nulls are held inside, packed into the room the data has not taken: ρ∅ = N / (χ∂ − N), where χ∂ = 16 · 4^L is the skin's capacity, the Local Cell Count.
  5. The game says what is happening as the core fills: "data in motion", "null filling the core" at a quarter of capacity, "Null Nova near" at 45%.

The method, in plain steps:

each flip while the epoch is "singularity":
    run the cell rule on the skin
    r ← Rhythms so far;  N ← (2r)²;  Pulse shown ← ⌊r / 2⌋ ↑
    move N data points inside at light speed, turning with the skin
    if N ≥ χ∂ / 2 and no nova yet → the Null Nova

The code:

// public/game-v8.5-claude-1/pinpoint.js:41–47
export function skinCapacity(L) { return 16 * Math.pow(4, Math.max(0, L)); }
export function dataWithin(r) { return 4 * r * r; }
export function novaRhythm(L) { return Math.ceil(Math.sqrt(skinCapacity(L)) / 2); }

// public/game-v8.5-claude-1/app.js:537 stepPinpoint()
const n = Math.max(0, pulseCounter - 1);   // Rhythms since the clock started: the data's count (the Pulse Mirror; the first frame only starts it)
skinTurn += Math.PI * skinSpeed(uni.a_f); skinAngle = skinTurn % (2 * Math.PI);
const res = pinGas.step(n, uni.a_f, skinAngle, { lit: grid, pulser: pulserGrid, color: colorGrid, exposure: exposureGrid });

// public/game-v8.4/app.js:4331 novaCapacity()
if (novaCount === 0) return cap / 2;                    // the Null Nova: data and null, one each, fill the Pulsecore
if (epoch === 'singularity') return cap;                // the Data Nova: the data alone outgrows the Bifold

Part 10.6: Harmonic 1, the Null Nova: Space Is Born

  1. When data and null together fill the Pulsecore, N ≥ χ∂/2, the first nova fires (triggerInfoNova(), Part 2.6).
  2. Only the null leaves. The null of every bit goes out as one place of empty space each: the empty torus stands round the Pulsecore. None of the data moves.
  3. The banner reads "Null Nova · space is born".
  4. From now on each new bit's null leaves as it is made, so space grows one place a bit, S = N, until the Data Nova finds χ∂ places.
  5. No well forms: wells need data, and only space has been made.
  6. The Pulsecore keeps filling, now toward its Data Nova: "space growing" at 75% of capacity, "Data Nova near" at 90%.

The code:

// public/game-v8.4/app.js:5136 triggerInfoNova(), the nova sequence
novaCount++;
const nullNova = epoch === 'singularity' && novaCount === 1;
const dataNova = epoch === 'singularity' && novaCount >= U.SPACE_LAYER;
…
if (nullNova) {
    // nothing of the data moves: only the null leaves, and the empty torus of space stands round the Pulsecore
    …
    latestNovaCenters = [[Math.floor(rows / 2), Math.floor(cols / 2)]];
    if (scene && scene.setSpace) scene.setSpace(0.5);
}

Part 10.7: Harmonic 2, the Data Nova: The Data Erupts

  1. When the data alone outgrows the Bifold, N ≥ χ∂, at Tempo ⌈√χ∂ − 1⌉, the Data Nova fires (Part 2.6).
  2. The universe gets its matter law from its depth: its strong force, the mass of its stars and whether it can hold stable matter (Part 5.2).
  3. The Pulsecore turns inside out. Its skin is turned onto the torus (insideOutTurn()): each row moves outward from the throat, the inner equator, so the data reaches the throat's own row.
  4. Everything else the core held erupts onto the scaffold at once (eruptOntoScaffold()): the (2r)² − χ∂ bits beyond the skin go into the empty places, chosen partly by the scaffold's weight and partly evenly, by a hash of place and frame, so a replay lands them the same.
  5. The core is empty now, the pin head at the centre.
  6. The epoch becomes "universe" and the universe's own clock starts at this frame (birthFrame). Its scale is 1.
  7. The first wells form from the data and nothing else: the densest places of the turned data become Proto Wells. Each takes its share of the overflow as its mass, and the cells of data nearest its centre, ring by ring, collapse into it (Null Well Collapse, Part 3.4). On a scale model the drawn wells stand for the true level's 2^(L/3).
  8. The Proto Wells ride the data's flow; they are wells of data, massless, until the physical layer (Part 3.5).
  9. The banner reads "Data Nova · the data erupts".

The method, in plain steps:

when N ≥ χ∂ (the Data Nova):
    turn the skin inside out onto the torus
    pour the remaining (2r)² − χ∂ bits onto empty places of the scaffold
    epoch ← "universe";  the universe's clock starts now
    at the densest places of the data: Proto Wells, mass = their share of the overflow
    each Proto Well takes the cells of data nearest it, ring by ring

The code:

// public/game-v8.4/app.js:5136 triggerInfoNova(), the Data Nova
if (dataNova) {
    pinSkin = null; innerData = 0;
    if (uni) { uni.matterLaw = matterLaw(Number.isFinite(uni.depth) ? uni.depth : uni.L); … }
    const turned = insideOutTurn(finalGridData), turnedP = insideOutTurn(pulserGrid);
    …
    { const nN = Math.max(0, finalFrame - 1); eruptOntoScaffold(Math.max(0, dataWithin(nN) - skinCapacity(uni.Lm)), finalFrame, finalColors); }
    …
    birthFrame = finalFrame; scale = 1;
    setEpoch('universe');
}
if (dataNova) {
    const scaled = uni.Lm < uni.L, peaks = scaled ? densePlaces(protoDrawn(uni.progeny)) : densestPeaks();
    …
        const nN = …, over = Math.max(peaks.length, dataWithin(nN) - skinCapacity(uni.Lm));
        …
        wellMasses = peaks.map(p => Math.max(1, Math.round(over * p.mass / Math.max(1, sumP))));
}

Part 10.8: Every Step of the Universe's Life

From the Data Nova to the final well, every flip runs the cell rule and then, in this order (updateCore()):

  1. The drag: the spin's frame drags the field round its centre (Part 2.10).
  2. The spin through the nova: the pinpoint's spin is carried into the torus; the inside-out turn moves the data outward, so its rate falls to 0.8 of the pinpoint's, and as the universe grows it falls as 1/scale² (the skater's arms going out).
  3. The flow (flowSlice()): the data circulates round the torus at light speed. Data crossing the throat passes through the Source and out again, and is counted.
  4. The wells (stepWells()): each well, and from the Physical Nova each heavy cluster of matter, turns the data round it at its Kepler rate and draws it in; with many wells, each reaches out to half the way to its nearest neighbour (Part 3.11).
  5. The core (stepInner(), stepInnerGas()): empty since the Data Nova.
  6. The lattice (rideLattice()): the scaffold turns with the data's spin. Between the Data Nova and the Physical Nova the torus draws in toward the pin head, faster as the Physical Nova nears.
  7. The matter (stepMatterTo()): four sub-steps of gravity a flip, once matter exists (Part 4.1).
  8. A life sample every fourth flip, for the record.
  9. The dilation: the scale grows from 1 at birth toward 2f at the final well, 1 + (2f − 1) · n / 2^L (Dilation Toward the Final Well, Part 2.11).
  10. The mergers: after the matter moves, two wells whose horizons touch, or that are bound and within reach, merge into one at their centre of mass, shedding a share of their mass as gravitational waves; the merged well's spin and its child's signature are read from the merger (mergeWells(), Part 3.10). One merger a step. (stepOrbits() still runs here, but the paired-orbit code that would fill it is switched off, so it does nothing; Part 3.5.)
  11. The finds (stepFinds()): states, strings and the wells' rings are watched for (Chapter 7).
  12. The checks: if the life is over, the rupture (Part 10.11); otherwise, if the next harmonic is due, its nova (Part 10.10).

The code:

// public/game-v8.4/app.js:4518 updateCore(), the universe's step
flowSlice(dt);
stepWells();
stepInner();
stepInnerGas();
rideLattice(dt);
stepMatterTo(1); matterSubDone = 0; matterWant = 0;
if (pulseCounter % 4 === 0) lifeSample();
scale = dilation(universePulses(), uni.L, uni.f);
if (scene) scene.setScale(scale);
applyVoid();
stepOrbits();
stepFinds();

// public/game-v8.4/engine.js:113 dilation()
export function dilation(n, L, f) {
    const cap = Math.pow(2, L);
    const x = Math.max(0, Math.min(1, cap > 0 ? n / cap : 1));
    return 1 + (2 * f - 1) * x;
}

Part 10.9: Harmonic 3, the Physical Nova: The Big Bang

  1. At a third of the life, Tempo ⌈2^L / 3⌉ of the universe's own clock, the Physical Nova fires: Harmonic 3, the big bang.
  2. A share 2^(−D) of the Proto Wells fail and return home (failProtoWells(), Part 3.6); every other Proto Well becomes a physical well and a site that fills with matter (promoteDataWells()).
  3. The Pulsecore bursts (burstPulsecore()): all the data the universe holds at this Rhythm, (2r)², condenses into matter, laid where the data sits on the scaffold (sendOutMatter(), Part 4.5). The matter starts cold; orbits, discs and spin come of the fall.
  4. Space erupts from the pin head and the torus grows back to its full size; the expansion and the vacuum's share start.
  5. The banner reads "Physical Nova · the big bang".
  6. From here the matter falls: clumps collapse into wells, gas cools into stars, stars live and die (Chapters 4 and 5), and galaxies and the web gather (Chapter 6).

The code:

// public/game-v8.4/app.js:5136 triggerInfoNova()
if (novaCount === U.PHYSICAL_LAYER) promoteDataWells(finalFrame);
if (epoch === 'universe' && novaCount >= U.PHYSICAL_LAYER && !innerBurst) burstPulsecore(finalFrame);

// public/game-v8.5-claude-1/app.js:1335 burstPulsecore()
const sentMatter = sendOutMatter(frame, Math.max(1, dataWithin(Math.max(0, pulseCounter - 1))));

// public/game-v8.5-claude-1/app.js:4579 the Physical Nova's Tempo: 2^Lm/3 cells of reach past the Data Nova, four a Tempo
function physicalTempo() { return uni ? Math.ceil(uni.rupturePulses / 12) : Infinity; }

Part 10.10: The Harmonics

  1. Harmonic h comes at (1 − 3/h) of the life, counted from the big bang (the Data Harmonics law, Part 2.7): Harmonic 4 at a quarter of the life after it, Harmonic 6 at half, and so on, crowding toward the end.
  2. Harmonics that fall within one Tempo of each other arrive together, the Tempo being the universe's finest tick.
  3. Each harmonic collapses the densest places it finds into new wells, and the lattice rings stronger. Harmonic 4 completes the fourfold scaffold, spacetime.
  4. A universe has 3 · 2^L harmonics in its life (the Layer Count Law); past Harmonic 4 they pass quietly, without a banner.

The method, in plain steps:

each step of the life:
    t ← the universe's Tempos since its Data Nova
    while the next harmonic's Tempo ≤ t → advance to it
    if a harmonic was reached → its nova
harmonicTempo(h) = ⌈2^L / 3⌉ + ⌈2^L · (1 − 3/h)⌉     for h > 3

The code:

// public/game-v8.4/app.js:4321 harmonicTempo()
function harmonicTempo(h) {
    if (!uni) return Infinity;
    if (h <= 3) return Math.ceil(uni.rupturePulses * (1 - 2 / Math.max(2, h)));   /* the data's count, beyond time */
    return physicalTempo() + Math.ceil(uni.rupturePulses * (1 - 3 / h));
}

// public/game-v8.4/app.js:4518 updateCore(), the check
const t = universePulses(); let h = novaCount + 1;
if (harmonicTempo(h) <= t && t !== lastHarmonicTempo) {
    while (h < uni.layers && harmonicTempo(h + 1) <= t) h++;
    novaCount = h - 1; lastHarmonicTempo = t; triggerInfoNova();
}

Part 10.11: The Final Well

  1. At 2^L of its own Tempos after the big bang, the universe forms its final well (the Rupture Rule, Part 1.7).
  2. Wells still orbiting would fall together here; with the paired orbits switched off (Part 3.5) there are none, and the last merger has already happened in the matter step.
  3. The census (takeCensus(), Part 3.14): every well, physical and data, is ranked by mass, and each child's depth is read from its well's share of the universe's matter, L_child = L + log₂(8.1 · share / multiplicity) (Ascendant Wells).
  4. The children are listed, the first twelve by rank; a merged well's child is the merger's, with the merger's spins. The rest are made when the player taps their wells.
  5. Each child's outcome is drawn from the Reproductive Outcome Distribution: viable 67%, chaotic 18%, a branch-line offshoot 9%, failed 6% (Part 1.12). The draw is a hash of the lineage's step count, the well and the wells' birth times, so a replay draws the same.
  6. The field at the final well is kept, so any well's child can be made later.
  7. Credits: each well is worth the frame ratio s of the universe that made it.
  8. The universe is saved with its record: children, wells, the law's progeny 2^(L/3) against the census, folds, credits.
  9. The return begins.

The code:

// public/game-v8.4/app.js:4518 updateCore()
if (uni && epoch === 'universe' && !ruptured && !reverse && universePulses() >= lifeEndTempo()) { rupture(); return; }

// public/game-v8.4/app.js:2538 rupture()
lifeSample(); takeCensus('final well');
lineage.children = [];
for (const e of (census ? census.entries : [])) {
    if (lineage.children.length >= 12) break;
    …
    lineage.children.push(childOfEntry(w, mg));
}
lineage.children.forEach((ch, i) => { ch.index = i + 1; const o = childOutcome(uni.gen ?? uni.L, ch.fromWell, i); ch.outcome = o.key; ch.failed = o.key === 'failed'; applyCensus(ch); });
…
credits = lineage.total * uni.s;
…
dissipating = { start: pulseCounter, frames: DISSIPATE_FRAMES, tick: 0, k: 0 };

// public/game-v8.4/app.js:957 takeCensus(), a child's depth
const depth = share > 0 ? L0 + Math.log2(ASCENDANT_RATIO * share / mult) : -Infinity;

// public/game-v8.4/universe.js:184 the outcomes
export const OUTCOMES = [
    { key: 'viable',  p: 0.67, name: 'viable' },
    { key: 'chaotic', p: 0.18, name: 'chaotic' },
    { key: 'branch',  p: 0.09, name: 'branch-line offshoot' },
    { key: 'failed',  p: 0.06, name: 'failed' }
];

Part 10.12: Return to the Source

  1. Universal Dissipation is total and instantaneous on the universe's clock (BPT Part 3.10). The game draws it over 18 frames; the pulse count stands still while it does.
  2. The field is held with its wells; strings, crystals and orbits clear.
  3. The state line reads "Returned to the Source · tap a well to dive in", and the run summary opens: the life in Pulses, the wells and children against the law's 2^(L/3), the harmonics reached, the finds.
  4. A countdown starts on the summary: "The universe continues into its full decay in 15 s". When it reaches zero the full decay begins on its own (Part 10.14).
  5. The player can choose first: tap a well to dive into its child (Part 10.13), press "⌛ Continue the universe" for the full decay now, or touch the card, press Escape or "Stay here" to stop the countdown for this universe.
  6. At level 0 with the Zinf loop on, the field goes to null instead and the Zinf beats again (Part 10.15).

The code:

// public/game-v8.4/app.js:2597 stepDissipation()
dissipating.k = Math.min(1, dissipating.tick / dissipating.frames);
…
if (dissipating.k < 1) { drawGrid(); return; }
const zinfChain = uni.L === 0 && uZinfLoop && uZinfLoop.checked && genesisFrame0;
…
returned = !zinfChain;
…
stateLabel.textContent = zinfChain ? 'State: Null' : 'State: Returned to the Source · tap a well to dive in';
if (zinfChain) { beats++; setTimeout(zinfBeat, 700); drawGrid(); return; }
…
showRunSummary();

Part 10.13: The Dive: A Child Universe

  1. The player taps a well and chooses to play its child (playChild(), Part 3.15). A failed child cannot be played.
  2. The child is one generation on: its generation is the parent's plus one, and its level is its own, read from its well's share (Level from Share, Part 1.13), rounded for the physics. Its heritage H is its lineage's.
  3. It inherits its well's spin: the parents' spins, mass ratio and merger angle of a merged well, or the well's own spin. Its poles start at centre.
  4. Its language is inherited: the parent's dialect and running routines are carried as its origin (Part 7.13).
  5. The universe is described again at the child's level, and the field resized.
  6. The child's pinpoint is its parent well's information (Return to Bifurcation): the basin that returned through the well is laid across the child's whole field, each child cell reading the basin at its place, and the rest of the sphere is filled outward from the nearest of it, so the child's whole pinpoint holds the parent's data. A child from a packet, with no basin, opens on a nova burst instead.
  7. The child plays at once: Start is pressed for it, and the run begins again from Part 10.3.

The code:

// public/game-v8.4/app.js:3361 playChild()
childDepth = Number.isFinite(ch.depth) ? ch.depth : null;   /* its level from its own well (Level from Mass) */
childGeneration = (uni.generation ?? 0) + 1; childLegacyL = ch.L;
childH = Number.isFinite(ch.H) ? ch.H : null;
…
recomputeUniverse();
…
    for (let r = 0; r < rows; r++) for (let c = 0; c < cols; c++) {
        const sr = Math.round(((r - cr) * E) / (rows / 2)), sc = Math.round(((c - cc) * E) / (cols / 2));
        const v = map.get(sr * 65536 + sc); if (!v) continue;
        grid[r][c] = v[0]; pulserGrid[r][c] = 1; colorGrid[r][c] = v[1]; placed++;
    }
…
start();   // the child plays at once

Part 10.14: The Full Decay

If the player continues the universe instead of diving, it runs to its true end (startDecay(), stepDecay()).

  1. The decay runs on its own clock, a tick every 90 ms, each tick longer than the last by 2^(1/6): the far future passes faster and faster.
  2. First the matter falls in. The bodies of matter fall into the wells, binary wells spiral together and radiate gravitational waves (Part 3.13), and clumps that collapse whole become wells.
  3. The census is read again once the matter is in: the wells stand at their greatest, and every child takes the depth its well now holds.
  4. Then the wells evaporate. Each well loses mass to its glow, m³ falling by 3K·Δτ with K = c⁴ / (15360 π G²) (the Hawking power), and its glow goes home to the Null Vacuum (Horizon Feeding, BPT Part 3.13). A well's last instant is a flash.
  5. Then the field fades over 40 ticks.
  6. The state line reads "Dissipated into nothing", and the run summary opens.
  7. A second countdown starts: the universe's Ascendant Alpha, its first-ranked Ascendant child, begins in 15 seconds; with no Ascendant child, the next child that did not fail. When it reaches zero the child plays (Part 10.13), and the line runs on, universe after universe, until one leaves no child to play: "The line ends here: this universe left no child to play." A hand on the card stops the count for that universe.

The code:

// public/game-v8.4/app.js:2637
const DECAY_GROW = Math.pow(2, 1 / 6), DECAY_FADE_TICKS = 40;

// public/game-v8.4/app.js:2660 stepDecay()
const dtau = d.tau * (DECAY_GROW - 1); d.tau *= DECAY_GROW;
…
} else if (d.stage === 'wells') {
    const G = universeG(), c = …, K = G > 0 ? Math.pow(c, 4) / (15360 * Math.PI * G * G) : Infinity;
    …   /* each well's glow goes home to the Null Vacuum (Hawking Power, Horizon Feeding; book Part 3.13) */
    … m3 = Math.pow(Math.max(1, m0), 3) - 3 * K * dtau; if (m3 <= 1) { radiate('hawking', m0, w); … }
} else {
    d.fadeTick++;
    decayFade = Math.min(1, d.fadeTick / DECAY_FADE_TICKS);
}

// public/game-v8.4/app.js:2756 the child that plays next
function nextChildToPlay() {
    const ok = lineage.children.filter(c => !c.failed);
    return ok.find(c => c.ascendant && c.rank === 1) || ok.find(c => c.ascendant) || ok[0] || null;
}

// public/game-v8.4/app.js:2766 armAuto(), the countdown on the summary card
const AUTO_SECONDS = 15;
…
        if (mode === 'decay') startDecay();
        else { const ch = nextChildToPlay(); if (ch) { hideRunSummary(); playChild(ch.index); } }

Part 10.15: Level 0: The Zinf Beats Again

  1. At level 0 the universe is the Zinf, the first universe. When its return completes with the Zinf loop on, its field goes to null.
  2. After 0.7 seconds the Zinf beats again (zinfBeat()): its own frame 0 is laid back on the field as the next beat's pinpoint, the lineage records the beat as one child of the last, the language is inherited, and the run starts again from Part 10.3.
  3. The level badge counts the beats: "Level 0 · Zinf · beat 2", and on.

The code:

// public/game-v8.4/app.js:3177 zinfBeat()
languageOrigin = 'inherited (the Zinf beats again)';
for (let r = 0; r < rows; r++) for (let c = 0; c < cols; c++) { grid[r][c] = genesisFrame0[r] && genesisFrame0[r][c] ? 1 : 0; pulserGrid[r][c] = grid[r][c]; exposureGrid[r][c] = 0; }
pulses = []; history = []; pulseCounter = 0; accumulatedEnergy = 0; prevGrid = copyGrid(grid);
setEpoch('pre');
if (hudLevelBadge) hudLevelBadge.textContent = `Level 0 · Zinf · beat ${beats + 1}`;
…
start();

Part 10.16: The Whole Script on One Page

LOAD
 1   the page opens; level 28, paced, field 256 (64 on a phone)
 2   a random genesis and its pinpoint are drawn
SET
 3   the player paints, chooses a level and a genesis, or resets
START
 4   the genesis locks; frame 0 is sealed; epoch ← singularity
EVERY FLIP
 5   the cell rule: flip, bifurcate at one whole pulse, fold when enclosed
THE PULSECORE
 6   the data within grows as (2r)², two cells of reach a Rhythm, at light speed in the turning skin; the Pulse rises ↑
 7   N ≥ χ∂/2  → HARMONIC 1, THE NULL NOVA: the null leaves as empty space
 8   N ≥ χ∂    → HARMONIC 2, THE DATA NOVA: the skin turns inside out, the data erupts
                 onto the scaffold, epoch ← universe, Proto Wells at the densest data
THE LIFE (2^L Tempos)
 9   each step: drag, flow, wells, lattice, matter (with mergers), dilation, finds
10   ⌈2^L/3⌉   → HARMONIC 3, THE PHYSICAL NOVA: the big bang; Proto Wells become wells;
                 all the data condenses into matter; stars, galaxies and the web follow
11   harmonics at (1 − 3/h) of the life, 3·2^L in all
THE END
12   2^L Tempos after the big bang → THE FINAL WELL: the census, the children, their outcomes
13   the return to the Source: the field is held with its wells
14a  dive: a child, one generation on, its pinpoint its well's information → back to 4
14b  continue (by hand, or after a 15 s countdown): the full decay: matter falls in,
     wells evaporate, the field fades to nothing; then after 15 s more the Ascendant
     Alpha, the first-ranked child, plays → back to 4, until a universe leaves no child
14c  level 0: the Zinf beats again from its own frame 0 → back to 4