# Royal extra-life advantage review ## Evidence and scope Reviewed the requested public source at immutable commit [`bddb39f58e88db884565d1c0c6ee9106f536a2f4`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/tree/bddb39f58e88db884565d1c0c6ee9106f536a2f4), committed 2026-11-28 04:42:32 UTC. Measurements and local checks were run 2026-11-28 against that checkout. No chain or deployment evidence was used; this is a game-engine review, not a deployment review. Relevant source: [`game/engine.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/engine.mjs) initializes a Royal run with one life and consumes it on the first lethal contact, removes every colliding obstacle, and leaves distance and movement intact. [`game/test/engine.test.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/test/engine.test.mjs) asserts first-contact distance/tick preservation and subsequent death. The same engine's `playerHitbox` returns fixed dimensions for skin IDs 0–20; [`game/test/engine.test.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/test/engine.test.mjs) deep-compares stand and duck boxes for every ID. The reference response policy is [`game/test/support/autopilot.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/test/support/autopilot.mjs). ## Measurements I ran the existing engine test suite with Node 24.21.0: `node --test 'game/test/**/*.test.mjs'` from the pinned checkout. Result: **31 passed, 0 failed** (including Royal save, cosmetic hitboxes, replay fixtures, reachability and course tests). The command used an absolute Node executable because `node` was not on this shell's PATH. I also ran the reproducible harness below: **2,000 identical seeds per skill and mode** (6,000 paired seeds total; 12,000 runs). For each seed, both modes receive the same generated course and deterministic obstacle-specific error pattern. Seeds are `(i * 0x9e3779b1 + 0x1234567) mod 2^32`, `i=0..1999`. Expert uses the reference autopilot timing with no missed responses; intermediate delays each reference cue by 8 ticks and misses 4% of obstacles; novice delays by 20 ticks and misses 12%. These are explicit synthetic controller profiles, not human playtest data. A miss is fixed per seed and obstacle ID; a delay shifts the response cue by `speed * delayTicks / 60`. All distances are final millimetres divided by 1,000, and percentiles use nearest-rank selection (`ceil(p*N)`). The 100-run comparison uses 20 non-overlapping cohorts in seed order. | Scripted skill | Mode | Mean m | Median m | 90th m | 99th m | Maximum m | |---|---:|---:|---:|---:|---:|---:| | Expert | Without Royal | 43.357 | 30.057 | 68.891 | 113.220 | 175.842 | | Expert | Royal | 70.254 | 61.339 | 107.912 | 168.825 | 242.450 | | Intermediate | Without Royal | 41.937 | 30.057 | 66.407 | 103.889 | 175.842 | | Intermediate | Royal | 67.369 | 59.014 | 101.680 | 159.173 | 242.450 | | Novice | Without Royal | 40.099 | 30.057 | 59.014 | 100.716 | 139.232 | | Novice | Royal | 63.439 | 56.825 | 95.644 | 146.699 | 215.338 | | Skill | Average Royal mean-distance gain | Seeds Royal finished farther | Cohorts where best of 100 Royal beat best of 100 non-Royal | |---|---:|---:|---:| | Expert | +26.897 m (+62.1%) | 2,000/2,000 (100%) | 20/20 | | Intermediate | +25.432 m (+60.6%) | 2,000/2,000 (100%) | 20/20 | | Novice | +23.340 m (+58.2%) | 2,000/2,000 (100%) | 20/20 | These outcomes are conditional on the disclosed scripted policies and seed set, not a prediction of a particular player's gain. Under these models the benefit is large: the one save advances survival through the first collision, and Royal runs ended farther in every paired sample. The results do not estimate human reaction distributions, exploit resistance, score-verifier behavior, or prize outcomes. ### Reproduction harness Save the following as `royal-harness.mjs` at the repository root and run `node royal-harness.mjs` using Node 22.13 or later. It imports only the pinned engine and its test reference autopilot and has no external dependencies. ```js import { createRun, stepRun, playerHitbox } from './game/engine.mjs'; import { nextObstacle, jumpClears } from './game/test/support/autopilot.mjs'; const SKILLS = [ { name: 'expert', delayTicks: 0, missPct: 0 }, { name: 'intermediate', delayTicks: 8, missPct: 4 }, { name: 'novice', delayTicks: 20, missPct: 12 }, ]; function misses(seed, id, pct) { let x = (seed ^ Math.imul(id, 0x9e3779b1) ^ 0x85ebca6b) >>> 0; x ^= x >>> 16; x = Math.imul(x, 0x7feb352d) >>> 0; x ^= x >>> 15; x = Math.imul(x, 0x846ca68b) >>> 0; x ^= x >>> 16; return x % 100 < pct; } function airPolicy(s) { const ob = nextObstacle(s); if (ob?.kind === 'overhead') return 2; return s.vyQ8 > 0 && (s.prevButtons & 1) ? 1 : 0; } function policy(s, skill) { if (s.airborne) return airPolicy(s); const ob = nextObstacle(s); if (!ob || misses(s.seed, ob.id, skill.missPct)) return 0; const delay = Math.ceil(s.speedMmPerSec * skill.delayTicks / 60); if (ob.kind === 'overhead') return ob.xMm < Math.ceil(s.speedMmPerSec * 24 / 60) + 200 - delay ? 2 : 0; if (s.prevButtons & 1) return 0; if (ob.xMm > Math.ceil(s.speedMmPerSec * 45 / 60) - delay) return 0; return jumpClears(s, ob) ? 1 : 0; } function play(seed, royal, skill) { let s = createRun(seed, royal), n = 0; while (s.alive && n++ < 2_000_000) s = stepRun(s, policy(s, skill)); if (s.alive) throw Error(`guard seed=${seed}`); return s.distanceMm; } function percentile(a, p) { return a[Math.ceil(p * a.length) - 1]; } const N = 2000, results = []; for (const skill of SKILLS) { const rows = []; let wins = 0; for (let i = 0; i < N; i++) { const seed = (Math.imul(i, 0x9e3779b1) + 0x1234567) >>> 0; const plain = play(seed, false, skill), royal = play(seed, true, skill); if (royal > plain) wins++; rows.push({ plain, royal }); } const summaries = {}; for (const mode of ['plain', 'royal']) { const v = rows.map(x => x[mode] / 1000).sort((a, b) => a - b); summaries[mode] = { mean: +(v.reduce((a, b) => a + b, 0) / N).toFixed(3), median: +percentile(v, .5).toFixed(3), p90: +percentile(v, .9).toFixed(3), p99: +percentile(v, .99).toFixed(3), max: +v.at(-1).toFixed(3), }; } let cohortWins = 0; for (let i = 0; i < N; i += 100) { let r = -1, p = -1; for (let j = i; j < i + 100; j++) { r = Math.max(r, rows[j].royal); p = Math.max(p, rows[j].plain); } if (r > p) cohortWins++; } results.push({ skill, n: N, summaries, royalFurther: wins / N, bestOf100RoyalWins: cohortWins, cohorts: N / 100 }); } console.log(JSON.stringify({ results, hitboxes: Array.from({ length: 21 }, (_, id) => ({ id, stand: playerHitbox(id, false), duck: playerHitbox(id, true), })) }, null, 2)); ``` ## Findings **MEDIUM — Royal materially increases attainable distance, so any competitive ranking or prize eligibility that accepts Royal scores must account for this disclosed paid advantage.** Reproduction: run the harness above; each skill produced 2,000/2,000 farther Royal scores, the average gains were 23.340–26.897 m, and Royal won all 20 best-of-100 cohort comparisons per skill. The engine's `scoreOf` reports whether Royal was used, but this review did not inspect a leaderboard or prize verifier. Source: [`game/engine.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/engine.mjs). ## Claim checklist - **PASS** — Pinned source commit and commit date match the assignment: [`commit`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/commit/bddb39f58e88db884565d1c0c6ee9106f536a2f4). - **PASS** — Royal initializes with exactly one life; Classic initializes with none: [`game/engine.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/engine.mjs). - **PASS** — First lethal contact consumes the save once, removes contacted obstacle(s), and preserves the tick's distance/vertical state; another lethal contact ends the run. Reproduction: existing Royal test, plus paired simulation harness: [`game/test/engine.test.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/test/engine.test.mjs). - **PASS** — Skins 0–20 return identical standing and ducking collision boxes (32 px wide; 44 px standing and 24 px ducking): [`game/engine.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/engine.mjs), [`game/test/engine.test.mjs`](https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/bddb39f58e88db884565d1c0c6ee9106f536a2f4/game/test/engine.test.mjs). - **PASS** — Requested summary statistics and paired comparisons reproduced by the included deterministic harness; exact model and cohort definitions are stated above. - **UNKNOWN** — Whether Royal scores are excluded, labeled, or otherwise treated differently in prize leaderboards; engine tests do not establish backend behavior. - **UNKNOWN** — Whether game sessions, replay verification, obstacle-seed fairness, and bot detection prevent clients from forging or selectively submitting Royal scores; not assessed in this item. - **UNKNOWN** — Royal's purchase price, wallet ownership, non-transferability, weekly expiry/reset, repurchase behavior, and lack of stacking across games; no purchase or entitlement implementation was reviewed. - **UNKNOWN** — Deployed code, deployment status, legal eligibility, and prize payout operation; source presence and local tests cannot establish these. I could not check real-player performance, production leaderboard/prize treatment, backend security, entitlement expiry, deployment, or legal clearance from the reviewed engine and tests. Royal gives the holder one automatic save from the first otherwise-fatal collision in each run; it preserves distance at that collision, removes the colliding obstacle or obstacles, and does not grant a second save in that run. In the three scripted models tested, it increased mean distance by about 23–27 meters and Royal finished farther in every paired seed, so players should be told plainly that Royal provides a competitive scoring advantage; the cited engine evidence does not establish its price, expiry, leaderboard eligibility, or deployment.