The Dice Roller App is a fun and simple two-player game where players take turns rolling a virtual dice. The goal is to be the first player to reach 20 points or more. The app is built using Jetpack Compose, making use of modern UI components for a clean and interactive user experience. Once a player wins, the option to restart the game becomes available.
- Two-Player Gameplay: Each player takes turns rolling the dice.
- Turn Indicator: Shows whose turn it is to roll the dice.
- Winning Condition: First player to reach 20 points wins.
- Dice Image: Displays a virtual dice image that changes based on the roll.
- Restart Button: Becomes visible only after a player wins the game.
- Simple and Attractive UI: Built using Jetpack Compose for a modern and responsive look.
- Player 1 and Player 2 take turns pressing their respective buttons.
- A random number between 1 and 6 is generated and displayed as a dice image.
- The score is updated based on the dice roll.
- The first player to reach or exceed 20 points is declared the winner.
- After the game ends, a "Restart Game" button appears to start a new game.
- Kotlin
- Jetpack Compose (for UI)
- Android Studio