Question
Using kotlin in android studio create a card game called Monty. Initially show a stack of 3 cards face down and centered on the screen.
Using kotlin in android studio create a card game called Monty. Initially show a stack of 3 cards face down and centered on the screen. Once the play button is tapped, animate the left and right cards to their respective positions. Once the player taps on a card, perform a flip animation for the reveal and show a superimposed ImageView indicating win or loss. The player wins if they pick the ace.
Orientation: Make this a landscape orientation only app.
Button States: The play button is enabled initially and disabled once tapped. The reset button starts its life in a disabled state and is enabled once the play button is tapped. Back and forth.
Card Positio: Use ValueAnimators to animate cards to their left and right positions and back on reset. An ImageView's intrinsic width may come in handy: width = centerCardImageView.drawable.intrinsicWidth.toFloat()
Card Flips: Use ObjectAnimators and AnimatorSet for a 2 stage approach to animate a card flip for the reveal.
Result Animation: Use a ValueAnimator to animate the alpha value of an ImageView to announce winner or loser on reveal. On reset this ImageView is hidden,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started