Note
Native score attack: complete Lunatic 6,653,194,550 · Extra 3,308,826,050 (Scarlet Team, No Miss / No Bomb, verified exported replays). Targets: 7 B complete Lunatic (above the 7,053,332,460 all-shot human reference) and 4 B Extra.
A C++17 offline score-attack solver for Touhou 08 (Imperishable Night). It runs the
real game code headlessly, searches input sequences whose every committed step is
backed by a complete true-RNG Native future, and exports ordinary .rpy replays.
- Seed: read the RNG seed from the owned retail game in Wine at the pre-RegisterChain boundary, then keep it fixed for the episode.
- Search:
th08_shadow_styleruns the game one input at a time; a heuristic policy proposes candidates and forked children verify each one over a complete horizon with the true RNG (Planner). - Verify: re-execute the tape in a fresh process and play the exported replay naturally; both must match the producer exactly (Validation).
| Route | Shot | Score | Captures |
|---|---|---|---|
| Complete Lunatic 1→2→3→4A→5→Final B | Scarlet (Sakuya/Remilia) | 6,653,194,550 | 36/37 |
| Extra | Scarlet (Sakuya/Remilia) | 3,308,826,050 | 14/14 |
| Complete Lunatic | Magic (Marisa/Alice) | 5,550,599,270 | 36/37 |
| Extra | Magic (Marisa/Alice) | 3,013,913,970 | 14/14 |
The Scarlet Extra 3,179,193,860 replay also passed complete retail playback in Wine. All selected replays are indexed in reports/native; uploads are on Silent Selene.
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel 2
ctest --test-dir build --output-on-failureThat covers the asset-free libraries and tests. Add -DTH08_HEADLESS=ON (and
-DTH08_HEADLESS_DAT=path/to/th08.dat for the real-data tests) to build the game
runtime and scoring tools. Requires CMake 3.16+, a C++17 compiler and OpenSSL; the
Native build also needs SDL2, SDL2_image, SDL2_ttf, Fontconfig and your own th08.dat.
| Document | Purpose |
|---|---|
| Status | Current results and workspace state |
| Roadmap | Diagnosis of the score gap and the ordered plan for the next work |
| Scoring | TH08 score mechanics from source and the whole-run model |
| Lessons | What the first campaign tried, what worked and what did not |
| Planner | Search loop, proposals, phase plans, goals and checkpoints |
| Architecture | Code map, ownership and update-order contracts |
| Validation | Build, seed acquisition, run and verification commands |
| Experiment records | Raw per-task ledger and results |
| Engineering rules · Third-party notices | Contribution rules and attribution |
