# PEPE RUN Royal revive distance review At foundation commit [`c37a47850e3f6605a39c8b6259248c9424a4e47a`][commit], Royal increased the whole-meter death score in all 53 pairs with two observed deaths. The median gain was **13 m** for idle input (32 pairs) and **643 m** for course-aware input with deterministic omissions (21 pairs). Another 11 pairs under the second policy reached the tick cap with a runner alive, so their final death-score differences are unknown. These are headless measurements of the pinned engine's collision and scoring rules. [`game/engine.mjs` collision and score][collision] ## Method - **Seeds and pairings.** Start at `x = 0x50455045` and, 32 times, update `x = (Math.imul(x, 1664525) + 1013904223) >>> 0` before recording it. Use all 32 distinct unsigned 32-bit seeds in that order for both policies. For each policy and seed, initialize Classic with `createRun(seed, false)` and Royal with `createRun(seed, true)`. The seed determines the generated course. Compare both runs against the same `generateCourse(seed, 3260000)` course, which covers even 10,800 ticks at maximum speed plus the spawn-ahead window. [`game/engine.mjs` constants][constants] · [course generation][course] · [run initialization][create] - **Idle.** Supply mask `0` every tick. This makes the first two contacts observable without any avoidance input. [`game/engine.mjs` input handling][input] - **Course-aware with omissions.** On each tick use the pinned test helper's `nextObstacle(state)` to pick the nearest obstacle whose trailing edge has yet to pass the back of the runner. If there is a target, compute `key = (state.seed ^ Math.imul(target.id, 0x9e3779b9)) >>> 0`. Return mask `0` for every tick targeting an obstacle with `(rngNext(key)[0] & 63) === 0`. Otherwise return `autopilotInput(state)`. The helper looks ahead using the engine to choose an early clearing jump for ground obstacles, ducks for nearby overhead obstacles, and fast-falls for an overhead target when airborne. The omission gate introduces deterministic missed inputs into a helper designed to find a survivable path. The policy is evaluated separately on each runner's current state, so it can react to the removal of a hit obstacle after Royal revives. [`game/test/support/autopilot.mjs`][autopilot] · [`game/engine.mjs` RNG][rng] - **Stopping and scoring.** Stop a scored run at death or at 10,800 ticks (180 simulated seconds at 60 Hz), whichever comes first. A runner alive at tick 10,800 is capped. Compute each difference as `scoreOf(royal).distanceM - scoreOf(classic).distanceM`. The engine floors each run's millimeters to whole meters separately. A completed pair has both death scores observed. [`game/engine.mjs` tick and terminal handling][input] · [whole-meter scoring][score] - **Checks.** Compare every shared input mask and every pre-contact state other than the starting Royal flag and life count. At contact compare the other state fields after excluding collision outcomes and the active obstacle list. For every step, check longitudinal motion including the fractional millimeter remainder. Reconstruct the expected active obstacles from the shared course, accounting for any obstacles removed by the revive, and independently check hit IDs with strict interval overlap using the engine's returned pose. Replay the recorded masks for all 128 scored runs and compare the entire final state and trailing-input count. [`game/engine.mjs` collision geometry][geometry] · [movement and collision][collision] · [replay][replay] ## Measured scores The terminal columns use only completed pairs. The observed endpoint columns include the whole-meter reading at the cap for living runners. Every capped runner was at **2,759 m** (2,759,770 mm plus 59/60 mm). These readings use the engine's distance accumulator and score function. [`game/engine.mjs` movement and score][collision] | Policy | Completed pairs / 32 | Classic capped | Royal capped | Both capped | Terminal + / 0 / − | Terminal median Δ | Observed endpoint + / 0 / − | Observed endpoint median Δ | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Idle | 32 | 0 | 0 | 0 | 32 / 0 / 0 | +13 m | 32 / 0 / 0 | +13 m | | Course-aware with omissions | 21 | 3 | 11 | 3 | 21 / 0 / 0 | +643 m | 29 / 3 / 0 | +874 m | ## Revive checks | Policy | Shared steps before first contact | First contacts checked | Revive and next-tick continuity | Royal died at next contact | Royal capped after revive | Royal capped without revive | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | Idle | 8,000 | 32 | 32 / 32 | 32 | 0 | 0 | | Course-aware with omissions | 137,266 | 29 | 29 / 29 | 21 | 8 | 3 | - All 64 pairs agreed at initialization and on every shared pre-contact step, apart from the expected Royal flag and life count. The masks also matched on all 61 first-contact steps. Replay reproduced all 128 final states with zero trailing inputs. [`game/engine.mjs` initialization][create] · [input and motion][input] · [replay][replay] - At each of the 61 first contacts, Classic died and Royal stayed alive on the same tick. Royal recorded that tick as `savedAtTick`, changed `livesLeft` from 1 to 0, and removed the single overlapping obstacle. Both runners had identical integer distance, remainder, speed, and movement state on the contact tick. Royal continued with the usual distance increment on the following tick. Idle always revived at tick 251, at 30,057 mm plus 10/60 mm. Under the course-aware policy, revives occurred from tick 251 through 10,362, spanning 30,057 to 2,628,370 integer mm. The remaining course continued to match the seed's generated obstacle positions. [`game/engine.mjs` course generation][course] · [movement and collision][collision] - Every observed post-revive contact ended Royal's run on that contact tick with zero lives. Idle Royal deaths ranged from ticks 329 to 375, all on obstacle 2. Course-aware Royal deaths ranged from ticks 1,145 to 10,778. The eight Royal runners capped after a save had no second contact within the observed window. [`game/engine.mjs` collision handling][collision] ## Censoring and limits In eight course-aware pairs, Classic died and Royal was still alive at the cap after reviving. Their observed gains of +868 to +2,604 m are lower bounds on eventual death-score gains if those runs continue under the same policy, since distance increases on every living step. In the other three capped pairs, both runners were alive and Royal had yet to revive, so the observed zero differences are equal cap readings with unknown death-score differences. The +874 m median describes the recorded endpoints of all 32 pairs. The +643 m median describes the subset with two deaths, which excludes every pair with a live runner at the cap. The full set's terminal median and terminal sign counts remain open. [`game/engine.mjs` motion and collision][collision] · [score][score] The 32 fixed seeds and two scripted input policies measure the engine mechanic under those simulated inputs. There are no player replays or production score records in this experiment, so the size of the advantage for real players and its effect on weekly rankings are open. The pinned practice README describes Classic-only practice, and the verification documentation assigns Royal session matching, replay validation, and ranking to the ledger and signers. This review has no end-to-end evidence of paid Royal admission, weekly expiry enforcement, or leaderboard eligibility and leaves those conclusions open. [`web/README.md`][practice] · [`docs/verification.md`][ledger] ## Per-seed endpoints Run cells show **whole meters @ stop tick**. An asterisk marks a live cap reading. A dagger marks a lower bound on the eventual gain. Two live cap readings give an observed zero marked with an asterisk. [`game/engine.mjs` scoring][score] | # | Seed | Idle Classic | Idle Royal | Idle Δ (m) | Course-aware Classic | Course-aware Royal | Course-aware Δ (m) | | ---: | --- | ---: | ---: | ---: | ---: | ---: | ---: | | 1 | `0xc4ac84e0` | 30 @ 251 | 41 @ 340 | 11 | 106 @ 835 | 150 @ 1145 | 44 | | 2 | `0xf002f2bf` | 30 @ 251 | 44 @ 368 | 14 | 155 @ 1175 | 2759 @ 10800\* | 2604† | | 3 | `0x4df46112` | 30 @ 251 | 43 @ 359 | 13 | 2759 @ 10800\* | 2759 @ 10800\* | 0\* | | 4 | `0x0b470d49` | 30 @ 251 | 40 @ 332 | 10 | 353 @ 2349 | 996 @ 4921 | 643 | | 5 | `0x6a76b614` | 30 @ 251 | 45 @ 374 | 15 | 2759 @ 10800\* | 2759 @ 10800\* | 0\* | | 6 | `0xb8f62a63` | 30 @ 251 | 43 @ 362 | 13 | 423 @ 2702 | 2759 @ 10800\* | 2336† | | 7 | `0xd97d8c66` | 30 @ 251 | 39 @ 331 | 9 | 942 @ 4743 | 1348 @ 6097 | 406 | | 8 | `0x03b5b88d` | 30 @ 251 | 44 @ 364 | 14 | 502 @ 3074 | 1081 @ 5206 | 579 | | 9 | `0xd9f68088` | 30 @ 251 | 45 @ 372 | 15 | 1108 @ 5297 | 2548 @ 10096 | 1440 | | 10 | `0x1271aa47` | 30 @ 251 | 40 @ 332 | 10 | 30 @ 251 | 1064 @ 5149 | 1034 | | 11 | `0x16fbe2fa` | 30 @ 251 | 44 @ 369 | 14 | 319 @ 2167 | 1485 @ 6554 | 1166 | | 12 | `0xee131611` | 30 @ 251 | 41 @ 347 | 11 | 444 @ 2807 | 1943 @ 8078 | 1499 | | 13 | `0x15dad83c` | 30 @ 251 | 44 @ 368 | 14 | 2759 @ 10800\* | 2759 @ 10800\* | 0\* | | 14 | `0xa88fd66b` | 30 @ 251 | 39 @ 330 | 9 | 380 @ 2491 | 2759 @ 10800\* | 2379† | | 15 | `0x0b9e78ce` | 30 @ 251 | 43 @ 361 | 13 | 1879 @ 7866 | 2759 @ 10800\* | 880† | | 16 | `0xc3bb29d5` | 30 @ 251 | 39 @ 329 | 9 | 362 @ 2394 | 583 @ 3427 | 221 | | 17 | `0xd567f130` | 30 @ 251 | 43 @ 358 | 13 | 2484 @ 9881 | 2668 @ 10496 | 184 | | 18 | `0x0a7f52cf` | 30 @ 251 | 43 @ 359 | 13 | 2628 @ 10362 | 2753 @ 10778 | 125 | | 19 | `0x961ba1e2` | 30 @ 251 | 43 @ 360 | 13 | 1580 @ 6868 | 2759 @ 10800\* | 1179† | | 20 | `0xad6837d9` | 30 @ 251 | 42 @ 355 | 12 | 318 @ 2160 | 1767 @ 7494 | 1449 | | 21 | `0x052b3f64` | 30 @ 251 | 45 @ 375 | 15 | 427 @ 2725 | 795 @ 4243 | 368 | | 22 | `0xeba70373` | 30 @ 251 | 39 @ 330 | 9 | 160 @ 1207 | 553 @ 3299 | 393 | | 23 | `0x1584f236` | 30 @ 251 | 41 @ 341 | 11 | 580 @ 3414 | 1024 @ 5016 | 444 | | 24 | `0xf3f6c41d` | 30 @ 251 | 41 @ 341 | 11 | 670 @ 3780 | 1478 @ 6529 | 808 | | 25 | `0x18ef76d8` | 30 @ 251 | 44 @ 371 | 14 | 1596 @ 6922 | 2759 @ 10800\* | 1163† | | 26 | `0x850a0c57` | 30 @ 251 | 45 @ 374 | 15 | 1891 @ 7907 | 2759 @ 10800\* | 868† | | 27 | `0x335b3dca` | 30 @ 251 | 42 @ 355 | 12 | 42 @ 355 | 2353 @ 9445 | 2311 | | 28 | `0x3b6992a1` | 30 @ 251 | 42 @ 352 | 12 | 1400 @ 6268 | 2759 @ 10800\* | 1359† | | 29 | `0xa2f08b8c` | 30 @ 251 | 44 @ 367 | 14 | 44 @ 367 | 1939 @ 8066 | 1895 | | 30 | `0xfaebd17b` | 30 @ 251 | 41 @ 347 | 11 | 120 @ 934 | 372 @ 2448 | 252 | | 31 | `0x64e2989e` | 30 @ 251 | 44 @ 365 | 14 | 227 @ 1638 | 2195 @ 8919 | 1968 | | 32 | `0x8c2da765` | 30 @ 251 | 42 @ 355 | 12 | 281 @ 1956 | 2628 @ 10364 | 2347 | [commit]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/tree/c37a47850e3f6605a39c8b6259248c9424a4e47a [constants]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L15-L55 [rng]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L83-L90 [geometry]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L121-L134 [course]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L136-L182 [create]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L205-L237 [input]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L239-L275 [collision]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L277-L355 [score]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L347-L355 [replay]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/engine.mjs#L450-L462 [autopilot]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/game/test/support/autopilot.mjs#L13-L53 [practice]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/web/README.md#L22-L28 [ledger]: https://github.com/identity-md-launches/goal-3502-build-audit-deploy-pepe/blob/c37a47850e3f6605a39c8b6259248c9424a4e47a/docs/verification.md#L51-L57