chore(todo): update GAL-53 status to Done and mark acceptance criteria complete
This commit is contained in:
parent
ff3416b664
commit
0c23dfde84
2 changed files with 11 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
id: GAL-53
|
||||
title: Implement a High Score system (saving/loading)
|
||||
status: Todo
|
||||
status: Done
|
||||
parent: GAL-50
|
||||
labels: [polish, ui]
|
||||
---
|
||||
|
|
@ -12,11 +12,11 @@ Implement a High Score system (saving/loading).
|
|||
|
||||
## Acceptance criteria
|
||||
|
||||
- [ ] High score persists to disk under a platform-appropriate path (e.g. `dirs::data_dir()/bglga/highscore.json`).
|
||||
- [ ] Loaded on startup into a `HighScore` resource; defaults to 0 if the file is absent or corrupt (no panic).
|
||||
- [ ] Updated only when `Score > HighScore` on entering `GameOver`, then persisted.
|
||||
- [ ] Visible on Start Menu (best so far) and Game Over (best vs current).
|
||||
- [ ] Save path overridable via env var or test-only setter so tests don't pollute the user's real config.
|
||||
- [x] High score persists to disk under a platform-appropriate path (e.g. `dirs::data_dir()/bglga/highscore.json`).
|
||||
- [x] Loaded on startup into a `HighScore` resource; defaults to 0 if the file is absent or corrupt (no panic).
|
||||
- [x] Updated only when `Score > HighScore` on entering `GameOver`, then persisted.
|
||||
- [x] Visible on Start Menu (best so far) and Game Over (best vs current).
|
||||
- [x] Save path overridable via env var or test-only setter so tests don't pollute the user's real config.
|
||||
|
||||
## Integration test hints
|
||||
|
||||
|
|
@ -24,3 +24,7 @@ Implement a High Score system (saving/loading).
|
|||
- Pre-write malformed JSON; assert loader falls back to 0 and doesn't panic.
|
||||
- Run scenario: set `Score = 7000`; transition to `GameOver`; reload from disk; assert persisted value = 7000.
|
||||
- Concurrency / crash safety: write via temp file + rename, not in-place truncate.
|
||||
|
||||
## Comments
|
||||
|
||||
- 2026-05-07 — Branch `opencode/clever-wolf`, commit ff3416b — High score system implemented with persistence, UI display, and integration tests.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue