fix(player): detonate mines on a held crossing or a press within PGREAT (LR2) - #179
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
be-music-player-demo | f24ed8b | Commit Preview URL Branch Preview URL |
Aug 19 2026, 11:07 AM |
Exports Benchmark
Summary
Top Regressions
Top Improvements
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #141.
LR2's own changelog (
history.txt, the 080114 mine-implementation entry) defines two detonation conditions: passing a mine with the key held ("キー押したまま地雷通過"), or pressing within the PGREAT range ("ピカグレ範囲内でキーを押すと爆発します"). No later entry revises it. The implementation followed losak's secondary writeup instead and used the GOOD window (±40–120 ms depending on rank) for both legs; the primary source wins.Changes
processLandminePassagenow reads the PGREAT window (±8–21 ms) instead of GOOD.goodWindowReachUsis renamed topgreatWindowReachUs(readsjudges[0]; PGREAT sits at index 0 in every ruleset's window set).[20_000, 20_000]) replaces the old GOOD one.docs/player-spec.md/.ja.mdanddocs/bms-spec.md/.ja.mdnow state the two-condition model and record why losak's GOOD claim is not adopted (primary source conflict, resolved in favor of LR2's changelog).Notes
Testing
vitest run packages/player/src/ruleset/judge.test.ts packages/player/src/index.test.ts— 97 passed.tsctypecheck andoxlintclean for@be-music/player.🤖 Generated with Claude Code