Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / wordmaker / AGENTS.md
| 1 | # AGENTS.md — games/wordmaker/ (':games:wordmaker') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/wordmaker/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | _Install: ./install games/wordmaker (dev by default)._ |
| 6 | - Gradle: :games:wordmaker / dir: games/wordmaker/ |
| 7 | - Package roots present: ui, data, domain, platform |
| 8 | - Entry files: MainActivity.kt, Route.kt, Navigation.kt |
| 9 | - Deps: :sdk:games, :library:work |
| 10 | - Metadata: metadata_data/games-wordmaker.md (present) |
| 11 | - Rust: no / screenshotTest: yes |
| 12 | |
| 13 | ## Overview |
| 14 | **Purpose:** Word puzzle — letter-wheel + crossword modes over a bundled dictionary with definitions; competitive lobby + level generation. 100% offline. |
| 15 | **Game shape:** `ui/` wheel/crossword/lobby screens → `platform/WordMakerViewModel` → `domain/` dictionary + generators → `data/` level store + competitive mode; achievements → `:sdk:games` → hub. |
| 16 | **Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/WordGameScreen.kt` → `platform/WordMakerViewModel.kt` → `domain/Dictionary.kt`. |
| 17 | **Gotchas:** Dictionary is bundled and locale-sensitive — word-list changes need per-locale validation. The letter wheel draws back-to-front in `WHEEL_LAYERS_IN_DRAW_ORDER` (`ui/components/WheelGeometry.kt`, iterated by `LetterChooser`): circle background → connection lines → letter tiles, so traced lines sit behind each letter's chip and glyph but in front of the circle background. |
| 18 | |
| 19 | ## Key files |
| 20 | ### Root — entry + navigation |
| 21 | - com/vayunmathur/games/wordmaker/MainActivity.kt |
| 22 | - com/vayunmathur/games/wordmaker/Navigation.kt |
| 23 | - com/vayunmathur/games/wordmaker/Route.kt |
| 24 | ### data/ + domain/ — levels, dictionary, modes |
| 25 | - com/vayunmathur/games/wordmaker/data/LevelDataStore.kt |
| 26 | - com/vayunmathur/games/wordmaker/data/CrosswordData.kt |
| 27 | - com/vayunmathur/games/wordmaker/data/CompetitiveMode.kt |
| 28 | - com/vayunmathur/games/wordmaker/data/WheelSpacing.kt |
| 29 | - com/vayunmathur/games/wordmaker/domain/Dictionary.kt |
| 30 | - com/vayunmathur/games/wordmaker/domain/CompetitiveLevelGenerator.kt |
| 31 | ### platform/ — ViewModel + achievements |
| 32 | - com/vayunmathur/games/wordmaker/platform/WordMakerViewModel.kt |
| 33 | - com/vayunmathur/games/wordmaker/platform/WordMakerUiContract.kt |
| 34 | - com/vayunmathur/games/wordmaker/platform/WordMakerAchievementsManager.kt |
| 35 | - com/vayunmathur/games/wordmaker/platform/AppBackupAgent.kt |
| 36 | ### ui/ — wheel, crossword, lobby |
| 37 | - com/vayunmathur/games/wordmaker/ui/WordGameScreen.kt |
| 38 | - com/vayunmathur/games/wordmaker/ui/WordGamePage.kt |
| 39 | - com/vayunmathur/games/wordmaker/ui/WordGameWheel.kt |
| 40 | - com/vayunmathur/games/wordmaker/ui/WordGameSubmission.kt |
| 41 | - com/vayunmathur/games/wordmaker/ui/WordGameOverlays.kt |
| 42 | - com/vayunmathur/games/wordmaker/ui/WordMakerGameLoader.kt |
| 43 | - com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.kt |
| 44 | - com/vayunmathur/games/wordmaker/ui/ChooserLetter.kt |
| 45 | - com/vayunmathur/games/wordmaker/ui/SettingsPage.kt |
| 46 | - com/vayunmathur/games/wordmaker/ui/dialogs/WordDialogs.kt |
| 47 | - com/vayunmathur/games/wordmaker/ui/components/CrosswordBoard.kt |
| 48 | - com/vayunmathur/games/wordmaker/ui/components/LetterChooser.kt |
| 49 | - com/vayunmathur/games/wordmaker/ui/components/WordComponents.kt |
| 50 | - com/vayunmathur/games/wordmaker/ui/components/WordMakerTopBar.kt |
| 51 | |
| 52 | ## Verify (this module only) |
| 53 | ``` |
| 54 | ./gradlew :games:wordmaker:compileDevKotlin |
| 55 | ./gradlew :games:wordmaker:lint |
| 56 | ./gradlew :games:wordmaker:checkMetadata |
| 57 | ``` |