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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!