Datasets:
Download contracts/small/same_or_shift/rules.json from KRAFTON/A2Z-GameSpec-Bench: direct link, hf CLI and curl.
- Browser
- Download file 46 kB
-
https://huggingface.co/datasets/KRAFTON/A2Z-GameSpec-Bench/resolve/main/contracts/small/same_or_shift/rules.json
- Command line
-
hf download hf://datasets/KRAFTON/A2Z-GameSpec-Bench/contracts/small/same_or_shift/rules.json
-
curl -L -o rules.json https://huggingface.co/datasets/KRAFTON/A2Z-GameSpec-Bench/resolve/main/contracts/small/same_or_shift/rules.json
46 kB
| [ | |
| { | |
| "id": "R3", | |
| "label": "Lock and judge answer", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Locked", | |
| "attribute": "locked", | |
| "operator": "==", | |
| "value": false | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "SecondSymbolDisplay" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerKeyDown" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "lockedKey", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "the key of this answer press, locked as the trial's answer: F (Same) or J (Different); in Gameplay gamepad X or LB counts as F, and RB or B counts as J" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Locked", | |
| "attribute": "locked", | |
| "operator": "SET", | |
| "value": true | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "rtMs", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "round((time of this answer press − PH-B onset) × 1000): the response time in integer milliseconds" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "AnswerLocked" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R3", | |
| "gdd_quote": " | R3 | phase = `PH-B`, key ∈ {`F`,`J`}, not yet locked | lock answer = key; record RT = round((now − `PH-B` onset) × 1000) ms; resolve correctness via `RT-JUDGE`; end `PH-B` immediately; enter `PH-FB` |", | |
| "precondition": "phase = `PH-B`, key ∈ {`F`,`J`}, not yet locked", | |
| "action": "Apply R3 under the stated condition and trigger.", | |
| "expected": "lock answer = key; record RT = round((now − `PH-B` onset) × 1000) ms; resolve correctness via `RT-JUDGE`; end `PH-B` immediately; enter `PH-FB`", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 139, | |
| "line_end": 139, | |
| "quote": " | R3 | phase = `PH-B`, key ∈ {`F`,`J`}, not yet locked | lock answer = key; record RT = round((now − `PH-B` onset) × 1000) ms; resolve correctness via `RT-JUDGE`; end `PH-B` immediately; enter `PH-FB` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R1#2", | |
| "label": "Judge Same plus F correct", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Type", | |
| "attribute": "type", | |
| "operator": "==", | |
| "value": "Same" | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "lockedKey", | |
| "operator": "==", | |
| "value": "F" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerLocked" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": true | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R1#2", | |
| "gdd_quote": " | R1 | trial type = `SAME`, key = `F` | **correct** |", | |
| "precondition": "trial type = `SAME`, key = `F`", | |
| "action": "Apply R1#2 under the stated condition and trigger.", | |
| "expected": "**correct** Table header: **`RT-JUDGE` — correctness of a locked answer.**", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 148, | |
| "line_end": 148, | |
| "quote": " | R1 | trial type = `SAME`, key = `F` | **correct** |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R2#2", | |
| "label": "Judge Same plus J incorrect", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Type", | |
| "attribute": "type", | |
| "operator": "==", | |
| "value": "Same" | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "lockedKey", | |
| "operator": "==", | |
| "value": "J" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerLocked" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": false | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R2#2", | |
| "gdd_quote": " | R2 | trial type = `SAME`, key = `J` | **incorrect** |", | |
| "precondition": "trial type = `SAME`, key = `J`", | |
| "action": "Apply R2#2 under the stated condition and trigger.", | |
| "expected": "**incorrect** Table header: **`RT-JUDGE` — correctness of a locked answer.**", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 149, | |
| "line_end": 149, | |
| "quote": " | R2 | trial type = `SAME`, key = `J` | **incorrect** |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R3#2", | |
| "label": "Judge different plus F incorrect", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Type", | |
| "attribute": "type", | |
| "operator": "IN", | |
| "value": [ | |
| "DiffHard", | |
| "DiffEasy" | |
| ] | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "lockedKey", | |
| "operator": "==", | |
| "value": "F" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerLocked" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": false | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R3#2", | |
| "gdd_quote": " | R3 | trial type = `DIFF_HARD` or `DIFF_EASY`, key = `F` | **incorrect** |", | |
| "precondition": "trial type = `DIFF_HARD` or `DIFF_EASY`, key = `F`", | |
| "action": "Apply R3#2 under the stated condition and trigger.", | |
| "expected": "**incorrect** Table header: **`RT-JUDGE` — correctness of a locked answer.**", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 150, | |
| "line_end": 150, | |
| "quote": " | R3 | trial type = `DIFF_HARD` or `DIFF_EASY`, key = `F` | **incorrect** |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R4#2", | |
| "label": "Judge different plus J correct", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Type", | |
| "attribute": "type", | |
| "operator": "IN", | |
| "value": [ | |
| "DiffHard", | |
| "DiffEasy" | |
| ] | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "lockedKey", | |
| "operator": "==", | |
| "value": "J" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerLocked" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": true | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R4#2", | |
| "gdd_quote": " | R4 | trial type = `DIFF_HARD` or `DIFF_EASY`, key = `J` | **correct** |", | |
| "precondition": "trial type = `DIFF_HARD` or `DIFF_EASY`, key = `J`", | |
| "action": "Apply R4#2 under the stated condition and trigger.", | |
| "expected": "**correct** Table header: **`RT-JUDGE` — correctness of a locked answer.**", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 151, | |
| "line_end": 151, | |
| "quote": " | R4 | trial type = `DIFF_HARD` or `DIFF_EASY`, key = `J` | **correct** |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R1#3", | |
| "label": "Commit answered feedback", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Locked", | |
| "attribute": "locked", | |
| "operator": "==", | |
| "value": true | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "SecondSymbolDisplay" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "AnswerLocked" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Answered", | |
| "attribute": "answered", | |
| "operator": "SET", | |
| "value": true | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": { | |
| "expr": "RT-JUDGE result" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "Feedback" | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Timeout", | |
| "attribute": "timeout", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CorrectCount", | |
| "attribute": "correctCount", | |
| "operator": "INCREMENT", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "1 when this answer is judged correct (correct = true), adding the trial's point to the session score once; 0 when it is judged incorrect" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Variant", | |
| "attribute": "variant", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Correct when correct = true; Incorrect when correct = false" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ComparisonTrialStreakUpdated" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "CorrectOrWrongSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R1#3", | |
| "gdd_quote": " | R1 | answer locked during `PH-B` (`RT-INPUT` R3) | set `answered`=true, `timeout`=false, `correct`= `RT-JUDGE` result; feed Streak (`RT-STREAK`); play `SFX-CORRECT` if correct else `SFX-WRONG`; run `PH-FB` (feedback for that outcome) |", | |
| "precondition": "answer locked during `PH-B` (`RT-INPUT` R3)", | |
| "action": "Apply R1#3 under the stated condition and trigger.", | |
| "expected": "set `answered`=true, `timeout`=false, `correct`= `RT-JUDGE` result; feed Streak (`RT-STREAK`); play `SFX-CORRECT` if correct else `SFX-WRONG`; run `PH-FB` (feedback for that outcome) CorrectOrWrongSoundPlayed is SFX-CORRECT when correct = true and SFX-WRONG when correct = false, one cue per answered trial. Economy: Each trial contributes to session score: +1 correct on `RT-TRIAL` R1 when correct; otherwise no point (`RT-TRIAL` R1 incorrect / R2 timeout). Correctness Feedback: | Correct | R1 correct | ring pulse `COL-CORRECT`; symbol B tint→`COL-CORRECT` 60%; check glyph | `SFX-CORRECT` | | Incorrect | R1 incorrect | ring pulse `COL-WRONG`; symbol B tint→`COL-WRONG` 60%; horizontal shake; cross glyph | `SFX-WRONG` |", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 157, | |
| "line_end": 157, | |
| "quote": " | R1 | answer locked during `PH-B` (`RT-INPUT` R3) | set `answered`=true, `timeout`=false, `correct`= `RT-JUDGE` result; feed Streak (`RT-STREAK`); play `SFX-CORRECT` if correct else `SFX-WRONG`; run `PH-FB` (feedback for that outcome) |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R2#3", | |
| "label": "Commit timeout feedback", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Locked", | |
| "attribute": "locked", | |
| "operator": "==", | |
| "value": false | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "SecondSymbolDisplay" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Timeout" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Answered", | |
| "attribute": "answered", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "Feedback" | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Timeout", | |
| "attribute": "timeout", | |
| "operator": "SET", | |
| "value": true | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "ComparisonTrial", | |
| "attribute": "rtMs", | |
| "operator": "SET", | |
| "value": null | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Variant", | |
| "attribute": "variant", | |
| "operator": "SET", | |
| "value": "Timeout" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ComparisonTrialStreakUpdated" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "TimeoutSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R2#3", | |
| "gdd_quote": " | R2 | `PH-B` reaches 2.00 s (`DBT-7`) with no answer locked | set `answered`=false, `timeout`=true, `correct`=false, RT=none; feed Streak (`RT-STREAK`); play `SFX-TIMEOUT`; run `PH-FB` (timeout feedback) |", | |
| "precondition": "`PH-B` reaches 2.00 s (`DBT-7`) with no answer locked", | |
| "action": "Apply R2#3 under the stated condition and trigger.", | |
| "expected": "set `answered`=false, `timeout`=true, `correct`=false, RT=none; feed Streak (`RT-STREAK`); play `SFX-TIMEOUT`; run `PH-FB` (timeout feedback) Economy: Each trial contributes to session score: +1 correct on `RT-TRIAL` R1 when correct; otherwise no point (`RT-TRIAL` R1 incorrect / R2 timeout). Correctness Feedback: | Timeout | R2 | ring pulse `COL-TIMEOUT`; symbol B fades to 40% opacity + tint `COL-TIMEOUT`; dash glyph | `SFX-TIMEOUT` |", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 158, | |
| "line_end": 158, | |
| "quote": " | R2 | `PH-B` reaches 2.00 s (`DBT-7`) with no answer locked | set `answered`=false, `timeout`=true, `correct`=false, RT=none; feed Streak (`RT-STREAK`); play `SFX-TIMEOUT`; run `PH-FB` (timeout feedback) |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R4#3", | |
| "label": "Pause the active trial", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "IN", | |
| "value": [ | |
| "FirstSymbolDisplay", | |
| "InterStimulus", | |
| "SecondSymbolDisplay", | |
| "Feedback", | |
| "InterTrial" | |
| ] | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "PauseOpened" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "Pause" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R4#3", | |
| "gdd_quote": " | R4 | player opens pause during any phase of this trial | freeze the active phase (`PH-PAUSE`). On resume: if no answer has been committed yet (pause during `PH-A`/`PH-ISI`/`PH-B`), re-present THIS trial from `PH-A` with the same A/B and discard any partial input/RT for it; if a result was already committed (pause during `PH-FB`/`PH-ITI`), keep that recorded result and resume the remaining `PH-FB`/`PH-ITI` time with no second `RT-STREAK`/score update (see Screens › Pause) |", | |
| "precondition": "player opens pause during any phase of this trial", | |
| "action": "Apply R4#3 under the stated condition and trigger.", | |
| "expected": "freeze the active phase (`PH-PAUSE`). On resume: if no answer has been committed yet (pause during `PH-A`/`PH-ISI`/`PH-B`), re-present THIS trial from `PH-A` with the same A/B and discard any partial input/RT for it; if a result was already committed (pause during `PH-FB`/`PH-ITI`), keep that recorded result and resume the remaining `PH-FB`/`PH-ITI` time with no second `RT-STREAK`/score update (see Screens › Pause)", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 160, | |
| "line_end": 160, | |
| "quote": " | R4 | player opens pause during any phase of this trial | freeze the active phase (`PH-PAUSE`). On resume: if no answer has been committed yet (pause during `PH-A`/`PH-ISI`/`PH-B`), re-present THIS trial from `PH-A` with the same A/B and discard any partial input/RT for it; if a result was already committed (pause during `PH-FB`/`PH-ITI`), keep that recorded result and resume the remaining `PH-FB`/`PH-ITI` time with no second `RT-STREAK`/score update (see Screens › Pause) |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R1#4", | |
| "label": "Advance correct streak", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "==", | |
| "value": true | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "ComparisonTrialStreakUpdated" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CurrentStreak", | |
| "attribute": "currentStreak", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "LongestStreak", | |
| "attribute": "longestStreak", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "the incremented currentStreak when it is greater than the longestStreak held before this update; otherwise longestStreak keeps its value (the session maximum of currentStreak)" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "StreakMilestoneSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R1#4", | |
| "gdd_quote": " | R1 | trial `correct` = true | `currentStreak` += 1; if `currentStreak` > `longestStreak` then `longestStreak` = `currentStreak`; if `currentStreak` mod `DBT-11` = 0 then play `SFX-STREAK` + `VFX-STREAK-BURST` |", | |
| "precondition": "trial `correct` = true", | |
| "action": "Apply R1#4 under the stated condition and trigger.", | |
| "expected": "`currentStreak` += 1; if `currentStreak` > `longestStreak` then `longestStreak` = `currentStreak`; if `currentStreak` mod `DBT-11` = 0 then play `SFX-STREAK` + `VFX-STREAK-BURST` StreakMilestoneSoundPlayed is SFX-STREAK with VFX-STREAK-BURST and occurs only when the incremented currentStreak is a nonzero multiple of DBT-11 (5). Table header: **`RT-STREAK` — streak update on each trial result.** Called by `RT-TRIAL` R1/R2.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 254, | |
| "line_end": 254, | |
| "quote": " | R1 | trial `correct` = true | `currentStreak` += 1; if `currentStreak` > `longestStreak` then `longestStreak` = `currentStreak`; if `currentStreak` mod `DBT-11` = 0 then play `SFX-STREAK` + `VFX-STREAK-BURST` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R2#4", | |
| "label": "Reset failed streak", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Correct", | |
| "attribute": "correct", | |
| "operator": "==", | |
| "value": false | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "ComparisonTrialStreakUpdated" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CurrentStreak", | |
| "attribute": "currentStreak", | |
| "operator": "SET", | |
| "value": 0 | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R2#4", | |
| "gdd_quote": " | R2 | trial `correct` = false (incorrect or timeout) | `currentStreak` = 0 |", | |
| "precondition": "trial `correct` = false (incorrect or timeout)", | |
| "action": "Apply R2#4 under the stated condition and trigger.", | |
| "expected": "`currentStreak` = 0 Table header: **`RT-STREAK` — streak update on each trial result.** Called by `RT-TRIAL` R1/R2.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 255, | |
| "line_end": 255, | |
| "quote": " | R2 | trial `correct` = false (incorrect or timeout) | `currentStreak` = 0 |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R5#3", | |
| "label": "Save completed session", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "SessionCompleted" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "SessionsCompleted", | |
| "attribute": "sessionsCompleted", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "GameSessionSaved" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "SaveSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ProgressSavedTextShown" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NewBestSoundPlayedIfAnyRecordImproved" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R5#3", | |
| "gdd_quote": " | R5 | always | `sessionsCompleted` += 1; write save; play `SFX-SAVED` + show \"Progress saved\"; if any of R1–R3 fired, play `SFX-NEWBEST` once |", | |
| "precondition": "always", | |
| "action": "Apply R5#3 under the stated condition and trigger.", | |
| "expected": "`sessionsCompleted` += 1; write save; play `SFX-SAVED` + show \"Progress saved\"; if any of R1–R3 fired, play `SFX-NEWBEST` once NewBestSoundPlayedIfAnyRecordImproved is SFX-NEWBEST, played once and only when at least one of RT-NEWBEST R1-R3 fired in this completion. Table header: **`RT-NEWBEST` — record updates at session complete** (reads/writes save `DBT-23`). Applied after the session's stats are computed; strictly-better wins only. Results screen: `Progress saved` at (640, 520), 16 px, `COL-HUD`, appears via fade after save (`RT-NEWBEST` R5).", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 310, | |
| "line_end": 310, | |
| "quote": " | R5 | always | `sessionsCompleted` += 1; write save; play `SFX-SAVED` + show \"Progress saved\"; if any of R1–R3 fired, play `SFX-NEWBEST` once |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R1#7", | |
| "label": "Move title highlight", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Title" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Move" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Highlight", | |
| "attribute": "highlight", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "other item among Start and Quit" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NavigationSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R1#7", | |
| "gdd_quote": "| R1 | TITLE + MOVE | move highlight between [Start],[Quit]; `SFX-NAV` |", | |
| "precondition": "TITLE + MOVE", | |
| "action": "Apply R1#7 under the stated condition and trigger.", | |
| "expected": "move highlight between [Start],[Quit]; `SFX-NAV`", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 499, | |
| "line_end": 499, | |
| "quote": "| R1 | TITLE + MOVE | move highlight between [Start],[Quit]; `SFX-NAV` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R2#7", | |
| "label": "Confirm title action", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Title" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Confirm" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Gameplay for Start or application exit for Quit" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "FirstSymbolDisplay (PH-A of trial 1) when Start is highlighted; no trial phase when Quit exits the application" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "SessionSeed", | |
| "attribute": "session_seed", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "When Start is highlighted: (2654435761 + 40503 × the persisted sessionIndex read at this start, default 0) mod 2^32, replaced by 1 if the result is 0 (DBT-16), and the 20-trial sequence of this session is built from it (Session & Trial Sequence); unchanged when Quit is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "SessionIndex", | |
| "attribute": "sessionIndex", | |
| "operator": "INCREMENT", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "1 when Start is highlighted, after session_seed is computed from the value read, and the new value is saved; 0 when Quit is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CurrentStreak", | |
| "attribute": "currentStreak", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Start is highlighted (session counters reset); unchanged when Quit is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "LongestStreak", | |
| "attribute": "longestStreak", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Start is highlighted (session counters reset); unchanged when Quit is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CorrectCount", | |
| "attribute": "correctCount", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Start is highlighted (session counters reset); unchanged when Quit is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "GameplayMusicFadedInOnSessionStart" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmFlashShown" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R2#7", | |
| "gdd_quote": "| R2 | TITLE + CONFIRM | activate highlighted — Start→begin new session; Quit→exit app; `SFX-CONFIRM` |", | |
| "precondition": "TITLE + CONFIRM", | |
| "action": "Apply R2#7 under the stated condition and trigger.", | |
| "expected": "activate highlighted — Start→begin new session; Quit→exit app; `SFX-CONFIRM` GameplayMusicFadedInOnSessionStart is the BGM-PLAY fade-in and occurs only when Start begins a new session. RT-SESSION: `RT-SESSION` — session boundary: on **start** (`RT-FLOW` R2 Start / R13 Play Again) seed and build the sequence (Session & Trial Sequence), reset counters, enter GAMEPLAY at trial 1 `PH-A`, fade in `BGM-PLAY`. Records & Save: On session **start**, read `sessionIndex`, use it to seed the trial sequence, then increment and save `sessionIndex`. Seed: `base = 2654435761`. On session start, read persisted `sessionIndex` (default 0), then `session_seed = (base + 40503 * sessionIndex) mod 2^32`; if the result is 0, use 1. Menus: Menus (Title, Pause, Results) share one interaction model: a vertical option list with one highlighted item; Move keys change the highlight (`SFX-NAV`, `VFX-HILITE`); Confirm activates it (`SFX-CONFIRM`, `VFX-CONFIRM-FLASH`).", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 500, | |
| "line_end": 500, | |
| "quote": "| R2 | TITLE + CONFIRM | activate highlighted — Start→begin new session; Quit→exit app; `SFX-CONFIRM` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R5#4", | |
| "label": "Open gameplay pause", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Gameplay" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Cancel" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": "Pause" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseOpened" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R5#4", | |
| "gdd_quote": "| R5 | GAMEPLAY + CANCEL | open `PH-PAUSE` overlay (freeze phase); `SFX-PAUSE`; apply `BGM-PAUSE` |", | |
| "precondition": "GAMEPLAY + CANCEL", | |
| "action": "Apply R5#4 under the stated condition and trigger.", | |
| "expected": "open `PH-PAUSE` overlay (freeze phase); `SFX-PAUSE`; apply `BGM-PAUSE`", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 503, | |
| "line_end": 503, | |
| "quote": "| R5 | GAMEPLAY + CANCEL | open `PH-PAUSE` overlay (freeze phase); `SFX-PAUSE`; apply `BGM-PAUSE` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R8", | |
| "label": "Move pause highlight", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Pause" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Move" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Highlight", | |
| "attribute": "highlight", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "other item among Resume and Quit to Title" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NavigationSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R8", | |
| "gdd_quote": "| R8 | PAUSE + MOVE | move highlight between [Resume],[Quit to Title]; `SFX-NAV` |", | |
| "precondition": "PAUSE + MOVE", | |
| "action": "Apply R8 under the stated condition and trigger.", | |
| "expected": "move highlight between [Resume],[Quit to Title]; `SFX-NAV`", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 506, | |
| "line_end": 506, | |
| "quote": "| R8 | PAUSE + MOVE | move highlight between [Resume],[Quit to Title]; `SFX-NAV` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R9", | |
| "label": "Confirm pause action", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Pause" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Confirm" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "when Resume is highlighted, the paused trial continues per RT-TRIAL R4: if no result was committed (paused in PH-A, PH-ISI or PH-B), FirstSymbolDisplay (PH-A) of the same trial with the same A and B, any partial input and RT discarded, and its later PH-B window a fresh 2.00 s; if a result was committed (paused in PH-FB or PH-ITI), the frozen Feedback or InterTrial phase for its remaining time only, with the recorded result kept and no second RT-STREAK or score update; when Quit to Title is highlighted, the session is discarded and no trial phase continues" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Gameplay for Resume or Title for Quit to Title" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmFlashShown" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicRemovedOnResume" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "TitleMusicFadedInOnTitleEnter" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R9", | |
| "gdd_quote": "| R9 | PAUSE + CONFIRM | activate — Resume→close overlay & resume the current trial per `RT-TRIAL` R4; Quit to Title→discard session, go TITLE; `SFX-CONFIRM` |", | |
| "precondition": "PAUSE + CONFIRM", | |
| "action": "Apply R9 under the stated condition and trigger.", | |
| "expected": "activate — Resume→close overlay & resume the current trial per `RT-TRIAL` R4; Quit to Title→discard session, go TITLE; `SFX-CONFIRM` RT-TRIAL R4: On resume: if no answer has been committed yet (pause during `PH-A`/`PH-ISI`/`PH-B`), re-present THIS trial from `PH-A` with the same A/B and discard any partial input/RT for it; if a result was already committed (pause during `PH-FB`/`PH-ITI`), keep that recorded result and resume the remaining `PH-FB`/`PH-ITI` time with no second `RT-STREAK`/score update Cross-Section Dependencies: pause during `PH-B` freezes the phase; on resume the trial re-runs from `PH-A` per `RT-TRIAL` R4 | window resets to full 2.00 s on the re-run Pause overlay: Quit to Title discards the session (records unchanged; see Records & Save). Menus: Menus (Title, Pause, Results) share one interaction model: a vertical option list with one highlighted item; Move keys change the highlight (`SFX-NAV`, `VFX-HILITE`); Confirm activates it (`SFX-CONFIRM`, `VFX-CONFIRM-FLASH`). PauseMusicRemovedOnResume is the removal of the BGM-PAUSE treatment and occurs only when Resume is highlighted. BGM-PAUSE: applied on pause enter; removed on resume. TitleMusicFadedInOnTitleEnter is the BGM-TITLE fade-in and occurs only when Quit to Title is highlighted. BGM-TITLE: fade in 0.5 s on Title enter.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 507, | |
| "line_end": 507, | |
| "quote": "| R9 | PAUSE + CONFIRM | activate — Resume→close overlay & resume the current trial per `RT-TRIAL` R4; Quit to Title→discard session, go TITLE; `SFX-CONFIRM` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R10", | |
| "label": "Cancel pause", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Pause" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Cancel" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "whatever option is highlighted, the paused trial continues per RT-TRIAL R4: if no result was committed (paused in PH-A, PH-ISI or PH-B), FirstSymbolDisplay (PH-A) of the same trial with the same A and B, any partial input and RT discarded, and its later PH-B window a fresh 2.00 s; if a result was committed (paused in PH-FB or PH-ITI), the frozen Feedback or InterTrial phase for its remaining time only, with the recorded result kept and no second RT-STREAK or score update" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": "Gameplay" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "CancelSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicRemovedOnResume" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R10", | |
| "gdd_quote": "| R10 | PAUSE + CANCEL | resume (as Resume above); `SFX-CANCEL` |", | |
| "precondition": "PAUSE + CANCEL", | |
| "action": "Apply R10 under the stated condition and trigger.", | |
| "expected": "resume (as Resume above); `SFX-CANCEL` RT-TRIAL R4: On resume: if no answer has been committed yet (pause during `PH-A`/`PH-ISI`/`PH-B`), re-present THIS trial from `PH-A` with the same A/B and discard any partial input/RT for it; if a result was already committed (pause during `PH-FB`/`PH-ITI`), keep that recorded result and resume the remaining `PH-FB`/`PH-ITI` time with no second `RT-STREAK`/score update Cross-Section Dependencies: pause during `PH-B` freezes the phase; on resume the trial re-runs from `PH-A` per `RT-TRIAL` R4 | window resets to full 2.00 s on the re-run BGM-PAUSE: applied on pause enter; removed on resume.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 508, | |
| "line_end": 508, | |
| "quote": "| R10 | PAUSE + CANCEL | resume (as Resume above); `SFX-CANCEL` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R12", | |
| "label": "Move results highlight", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Results" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Move" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Highlight", | |
| "attribute": "highlight", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "other item among Play Again and Back to Title" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NavigationSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R12", | |
| "gdd_quote": "| R12 | RESULTS + MOVE | move highlight between [Play Again],[Back to Title]; `SFX-NAV` |", | |
| "precondition": "RESULTS + MOVE", | |
| "action": "Apply R12 under the stated condition and trigger.", | |
| "expected": "move highlight between [Play Again],[Back to Title]; `SFX-NAV`", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 510, | |
| "line_end": 510, | |
| "quote": "| R12 | RESULTS + MOVE | move highlight between [Play Again],[Back to Title]; `SFX-NAV` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R13", | |
| "label": "Confirm results action", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Results" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Confirm" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Gameplay for Play Again or Title for Back to Title" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "FirstSymbolDisplay (PH-A of trial 1) when Play Again is highlighted; no trial phase when Back to Title opens the Title screen" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "SessionSeed", | |
| "attribute": "session_seed", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "When Play Again is highlighted: (2654435761 + 40503 × the persisted sessionIndex read at this start, default 0) mod 2^32, replaced by 1 if the result is 0 (DBT-16), and the 20-trial sequence of this session is built from it (Session & Trial Sequence); unchanged when Back to Title is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "SessionIndex", | |
| "attribute": "sessionIndex", | |
| "operator": "INCREMENT", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "1 when Play Again is highlighted, after session_seed is computed from the value read, and the new value is saved; 0 when Back to Title is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CurrentStreak", | |
| "attribute": "currentStreak", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Play Again is highlighted (session counters reset); unchanged when Back to Title is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "LongestStreak", | |
| "attribute": "longestStreak", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Play Again is highlighted (session counters reset); unchanged when Back to Title is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "CorrectCount", | |
| "attribute": "correctCount", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "0 when Play Again is highlighted (session counters reset); unchanged when Back to Title is highlighted" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "GameplayMusicFadedInOnSessionStart" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ConfirmFlashShown" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ResultsMusicCrossfadedOutOnLeaving" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "TitleMusicFadedInOnTitleEnter" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R13", | |
| "gdd_quote": "| R13 | RESULTS + CONFIRM | activate — Play Again→begin new session; Back to Title→go TITLE; `SFX-CONFIRM` |", | |
| "precondition": "RESULTS + CONFIRM", | |
| "action": "Apply R13 under the stated condition and trigger.", | |
| "expected": "activate — Play Again→begin new session; Back to Title→go TITLE; `SFX-CONFIRM` GameplayMusicFadedInOnSessionStart is the BGM-PLAY fade-in and occurs only when Play Again begins a new session. RT-SESSION: `RT-SESSION` — session boundary: on **start** (`RT-FLOW` R2 Start / R13 Play Again) seed and build the sequence (Session & Trial Sequence), reset counters, enter GAMEPLAY at trial 1 `PH-A`, fade in `BGM-PLAY`. Records & Save: On session **start**, read `sessionIndex`, use it to seed the trial sequence, then increment and save `sessionIndex`. Seed: `base = 2654435761`. On session start, read persisted `sessionIndex` (default 0), then `session_seed = (base + 40503 * sessionIndex) mod 2^32`; if the result is 0, use 1. Menus: Menus (Title, Pause, Results) share one interaction model: a vertical option list with one highlighted item; Move keys change the highlight (`SFX-NAV`, `VFX-HILITE`); Confirm activates it (`SFX-CONFIRM`, `VFX-CONFIRM-FLASH`). TitleMusicFadedInOnTitleEnter is the BGM-TITLE fade-in and occurs only when Back to Title opens the Title screen. BGM-RESULT: crossfade 0.4 s out on leaving. BGM-TITLE: fade in 0.5 s on Title enter.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 511, | |
| "line_end": 511, | |
| "quote": "| R13 | RESULTS + CONFIRM | activate — Play Again→begin new session; Back to Title→go TITLE; `SFX-CONFIRM` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "R14", | |
| "label": "Cancel results", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "==", | |
| "value": "Results" | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Cancel" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Screen", | |
| "attribute": "screen", | |
| "operator": "SET", | |
| "value": "Title" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "CancelSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ResultsMusicCrossfadedOutOnLeaving" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "TitleMusicFadedInOnTitleEnter" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "R14", | |
| "gdd_quote": "| R14 | RESULTS + CANCEL | go TITLE; `SFX-CANCEL` |", | |
| "precondition": "RESULTS + CANCEL", | |
| "action": "Apply R14 under the stated condition and trigger.", | |
| "expected": "go TITLE; `SFX-CANCEL` BGM-RESULT: crossfade 0.4 s out on leaving. BGM-TITLE: fade in 0.5 s on Title enter.", | |
| "evidence": "Observe the listed state changes and emitted cue events.", | |
| "source": { | |
| "file": "gdds/small/same_or_shift.md", | |
| "line_start": 512, | |
| "line_end": 512, | |
| "quote": "| R14 | RESULTS + CANCEL | go TITLE; `SFX-CANCEL` |" | |
| } | |
| } | |
| } | |
| ] | |