Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / arrows / AGENTS.md
| 1 | # AGENTS.md — games/arrows/ (':games:arrows') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/arrows/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | _Install: ./install games/arrows (dev by default)._ |
| 6 | <!-- last-reviewed: 2026-10-16 --> |
| 7 | - Gradle: :games:arrows / dir: games/arrows/ |
| 8 | - Package roots present: ui, data, domain, platform |
| 9 | - Entry files: MainActivity.kt, Route.kt, Navigation.kt |
| 10 | - Deps: :sdk:games, :library:work |
| 11 | - Metadata: metadata_data/games-arrows.md (present) |
| 12 | - Rust: no / screenshotTest: yes |
| 13 | |
| 14 | ## Overview |
| 15 | **Purpose:** Order-clearing arrow puzzle — every arrow must fly off unblocked; redirectors from level 11; daily board + 3-hearts escape overlay. 100% offline. |
| 16 | **Game shape (shared across MA games):** `ui/` board + screens → `platform/*ViewModel` (+ `UiContract`) → `domain/` pure rules/generator (+ solver where present) → `data/` progress store; achievements via `platform/*AchievementsManager` → `:sdk:games` → hub; daily boards via `:library:work`. |
| 17 | **Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `platform/ArrowsViewModel.kt` → `domain/ArrowsRules.kt`. |
| 18 | **Gotchas:** Every generated board must be clearable — generator changes need solvability checks. |
| 19 | |
| 20 | ## Key files |
| 21 | ### Root — entry + navigation |
| 22 | - com/vayunmathur/games/arrows/MainActivity.kt |
| 23 | - com/vayunmathur/games/arrows/Navigation.kt |
| 24 | - com/vayunmathur/games/arrows/Route.kt |
| 25 | ### data/ + domain/ — progress + pure rules |
| 26 | - com/vayunmathur/games/arrows/data/ArrowModels.kt |
| 27 | - com/vayunmathur/games/arrows/data/ArrowsDataStore.kt |
| 28 | - com/vayunmathur/games/arrows/domain/ArrowsGenerator.kt |
| 29 | - com/vayunmathur/games/arrows/domain/ArrowsRules.kt |
| 30 | ### platform/ — ViewModel + achievements |
| 31 | - com/vayunmathur/games/arrows/platform/ArrowsViewModel.kt |
| 32 | - com/vayunmathur/games/arrows/platform/ArrowsUiContract.kt |
| 33 | - com/vayunmathur/games/arrows/platform/ArrowsAchievementsManager.kt |
| 34 | - com/vayunmathur/games/arrows/platform/AppBackupAgent.kt |
| 35 | ### ui/ — board + screens |
| 36 | - com/vayunmathur/games/arrows/ui/ArrowsGameScreen.kt |
| 37 | - com/vayunmathur/games/arrows/ui/ArrowsGamePage.kt |
| 38 | - com/vayunmathur/games/arrows/ui/SettingsPage.kt |
| 39 | - com/vayunmathur/games/arrows/ui/components/ArrowsBoard.kt |
| 40 | - com/vayunmathur/games/arrows/ui/components/ArrowsBoardDrawing.kt |
| 41 | |
| 42 | ## Verify (this module only) |
| 43 | ``` |
| 44 | ./gradlew :games:arrows:compileDevKotlin |
| 45 | ./gradlew :games:arrows:lint |
| 46 | ./gradlew :games:arrows:checkMetadata |
| 47 | ``` |