Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / games / pipes / AGENTS.md

AGENTS.md2.7 KiBRenderedCodeRaw
1# AGENTS.md — games/pipes/ (':games:pipes')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/pipes/` + allowed shared modules. Do not root-scan.
4
5_Install: ./install games/pipes (dev by default)._
6<!-- last-reviewed: 2026-10-16 -->
7- Gradle: :games:pipes / dir: games/pipes/
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-pipes.md (present)
12- Rust: no / screenshotTest: yes
13
14## Overview
15**Purpose:** Numberlink-style pipe connection — connect colors to fill the board; packs + levels + shared daily board. 100% offline.
16**Game shape:** `ui/` board + pack/level screens + daily → `platform/PipesViewModel` → `domain/` generator + solver → `data/` completed-levels + models; dailies via `:library:work`; achievements → `:sdk:games` → hub.
17**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/GameBoardScreen.kt` → `platform/PipesViewModel.kt` → `domain/LevelGenerator.kt`.
18**Gotchas:** Daily boards derive from the date — same date must yield the same board on every device.
19
20## Key files
21### Root — entry + navigation
22- com/vayunmathur/games/pipes/MainActivity.kt
23- com/vayunmathur/games/pipes/Navigation.kt
24- com/vayunmathur/games/pipes/Route.kt
25### data/ + domain/ — levels + generation
26- com/vayunmathur/games/pipes/data/PipeModels.kt
27- com/vayunmathur/games/pipes/data/CompletedLevelsRepository.kt
28- com/vayunmathur/games/pipes/domain/LevelGenerator.kt
29- com/vayunmathur/games/pipes/domain/NumberlinkSolver.kt
30- com/vayunmathur/games/pipes/domain/DailyLevels.kt
31### platform/ — ViewModel + achievements
32- com/vayunmathur/games/pipes/platform/PipesViewModel.kt
33- com/vayunmathur/games/pipes/platform/PipesUiContract.kt
34- com/vayunmathur/games/pipes/platform/PipesAchievementsManager.kt
35- com/vayunmathur/games/pipes/platform/AppBackupAgent.kt
36### ui/ — board, packs, daily
37- com/vayunmathur/games/pipes/ui/GameBoardScreen.kt
38- com/vayunmathur/games/pipes/ui/GameBoard.kt
39- com/vayunmathur/games/pipes/ui/GameScreen.kt
40- com/vayunmathur/games/pipes/ui/LevelScreen.kt
41- com/vayunmathur/games/pipes/ui/PackScreen.kt
42- com/vayunmathur/games/pipes/ui/PackListScreen.kt
43- com/vayunmathur/games/pipes/ui/DailyLevelScreen.kt
44- com/vayunmathur/games/pipes/ui/SettingsScreen.kt
45- com/vayunmathur/games/pipes/ui/PipeRenderer.kt
46- com/vayunmathur/games/pipes/ui/PipeColors.kt
47- com/vayunmathur/games/pipes/ui/Theme.kt
48- com/vayunmathur/games/pipes/ui/components/LevelThumbnail.kt
49
50## Verify (this module only)
51```
52./gradlew :games:pipes:compileDevKotlin
53./gradlew :games:pipes:lint
54./gradlew :games:pipes:checkMetadata
55```