Roll Dice Quest
Kotlin + Jetpack Compose Android game that turns two-dice rolls into a staged quest with XP, coins, upgrades, badges, and history.
About: Android dice quest in Kotlin and Jetpack Compose. Staged tables, lucky sevens, upgrades, badges, and extra rolls.
Topics
18 GitHub topics (same count as the current sidebar), mixing high-traffic tags with the current Kotlin/Compose stack. Replaces Java-era and typo tags such as game-developement, game-develop, and androiddeveloper.
android · kotlin · jetpack-compose · material3 · android-app · android-application · android-game · android-development · android-studio · kotlin-android · compose · jetpack · game · game-development · mobile-game · dice · roll-dice · beginner
Highlights
- Six tables with rising score targets and limited rolls
- Combo scoring from doubles, streaks, lucky sevens, and upgrades
- One extra roll token on every table
- Persistent upgrades bought with coins
- Eight badges with XP and coin rewards
- Bottom navigation for Play, Powers, Badges, and History
- Reducer-based rules with unit tests
Gameplay
Roll two dice and chase the current table’s target before your rolls run out.
Each roll adds the dice total. Doubles award a bonus; consecutive doubles grow the combo. A total of 7 is a lucky seven and adds extra score. Clearing a table pays XP and coins and unlocks the next one. Running out of rolls restarts the table with consolation XP. Each table also grants one extra-roll token.
Coins buy permanent upgrades. Badges unlock from achievements.
Tables
| Table |
Target |
Rolls |
XP |
Coins |
| Opening Table |
34 |
6 |
40 |
30 |
| Doubles Hunt |
46 |
6 |
55 |
40 |
| Risk Corridor |
58 |
7 |
70 |
55 |
| Critical Streak |
72 |
7 |
90 |
70 |
| Champion Table |
90 |
8 |
120 |
95 |
| Legend Tour |
112 |
8 |
155 |
125 |
Upgrades
| Upgrade |
Effect |
Cost |
| Extra Attempt |
+1 roll on every table |
90 |
| Doubles Boost |
+4 score on doubles |
130 |
| Master Training |
+20% XP from table rewards |
170 |
| Lucky Seven |
+8 extra score when the dice total 7 |
110 |
Badges
| Badge |
Unlock |
| First Roll |
Roll for the first time |
| Double Strike |
Land a double |
| Twelve |
Roll 6-6 |
| Lucky 7 |
Roll a total of 7 |
| Combo Master |
Reach a 3x combo |
| Full Vault |
Hold 250 coins |
| Fifth Table |
Reach table 5 |
| Final Table |
Reach Legend Tour |
Architecture
The UI is Compose. Game rules live in a reducer so scoring, stages, upgrades, and badges stay testable and independent of the screen.
MainActivity → DiceGameViewModel → DiceGameReducer
UI intents / state rules
one-shot effects
| File |
Role |
MainActivity.kt |
Screens, navigation, theme, and Compose UI |
DiceGameViewModel.kt |
Accepts intents, holds state, emits effects |
DiceGameContract.kt |
UI intent and effect contract |
DiceGameReducer.kt |
Scoring, stage flow, upgrades, and badges |
DiceGameModels.kt |
State and domain models |
DiceGameCatalog.kt |
Stage, upgrade, and badge definitions |
DiceRoller.kt |
Dice rolling abstraction |
Tech stack
| Layer |
Version |
| Language |
Kotlin 2.4.20 |
| UI |
Jetpack Compose BOM 2026.09.00, Material 3 |
| Architecture |
AndroidX Lifecycle, Coroutines / Flow |
| Build |
Gradle 9.7.1, Android Gradle Plugin 9.4.0 |
| SDK |
compile/target 37, min 24 |
| Tests |
JUnit 4 |
Getting started
Open the project in Android Studio, then run the app configuration.
./gradlew :app:assembleDebug
./gradlew test
Requires JDK 17.
Screenshots
License
MIT. See LICENSE.
评论